StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II});
}
- std::sort(StringInstrMap.begin(), StringInstrMap.end(),
+ llvm::sort(StringInstrMap.begin(), StringInstrMap.end(),
[](const StringInstrPair &a, const StringInstrPair &b) -> bool {
return (a.first < b.first);
});
// can properly early-out when it detects the record won't be found. The
// algorithm used here corredsponds to the function
// caseInsensitiveComparePchPchCchCch in the reference implementation.
- std::sort(Bucket.begin(), Bucket.end(),
+ llvm::sort(Bucket.begin(), Bucket.end(),
[](const std::pair<StringRef, PSHashRecord> &Left,
const std::pair<StringRef, PSHashRecord> &Right) {
return gsiRecordLess(Left.first, Right.first);