diff options
Diffstat (limited to 'llvm/lib/Target/X86/X86InsertPrefetch.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86InsertPrefetch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InsertPrefetch.cpp b/llvm/lib/Target/X86/X86InsertPrefetch.cpp index 6c23928228d2..9aa70dff5f93 100644 --- a/llvm/lib/Target/X86/X86InsertPrefetch.cpp +++ b/llvm/lib/Target/X86/X86InsertPrefetch.cpp @@ -135,8 +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.starts_with(HintType.first)) { - Name = Name.drop_front(HintType.first.size()); + if (Name.consume_front(HintType.first)) { IID = HintType.second; break; } |
