We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fedccf commit 383a825Copy full SHA for 383a825
bolt/lib/Profile/YAMLProfileReader.cpp
@@ -887,7 +887,7 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) {
887
}
888
889
bool YAMLProfileReader::usesEvent(StringRef Name) const {
890
- return YamlBP.Header.EventNames.find(std::string(Name)) != StringRef::npos;
+ return StringRef(YamlBP.Header.EventNames).contains(Name);
891
892
893
} // end namespace bolt
0 commit comments