diff options
Diffstat (limited to 'llvm/lib/Target/X86/X86InsertPrefetch.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86InsertPrefetch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InsertPrefetch.cpp b/llvm/lib/Target/X86/X86InsertPrefetch.cpp index 3c9738be547f..3e11ab2d98a4 100644 --- a/llvm/lib/Target/X86/X86InsertPrefetch.cpp +++ b/llvm/lib/Target/X86/X86InsertPrefetch.cpp @@ -135,7 +135,7 @@ bool X86InsertPrefetch::findPrefetchInfo(const FunctionSamples *TopSamples, int64_t D = static_cast<int64_t>(S_V.second); unsigned IID = 0; for (const auto &HintType : HintTypes) { - if (Name.startswith(HintType.first)) { + if (Name.starts_with(HintType.first)) { Name = Name.drop_front(HintType.first.size()); IID = HintType.second; break; |