aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/ProfileList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/ProfileList.cpp')
-rw-r--r--clang/lib/Basic/ProfileList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/ProfileList.cpp b/clang/lib/Basic/ProfileList.cpp
index 9cb1188..8727057 100644
--- a/clang/lib/Basic/ProfileList.cpp
+++ b/clang/lib/Basic/ProfileList.cpp
@@ -36,7 +36,7 @@ public:
bool hasPrefix(StringRef Prefix) const {
for (const auto &It : sections())
- if (It.Entries.count(Prefix) > 0)
+ if (It.hasPrefix(Prefix))
return true;
return false;
}