diff options
Diffstat (limited to 'clang/lib/Basic/ProfileList.cpp')
| -rw-r--r-- | clang/lib/Basic/ProfileList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/ProfileList.cpp b/clang/lib/Basic/ProfileList.cpp index eea1b1e60ec7..8fa16e2eb069 100644 --- a/clang/lib/Basic/ProfileList.cpp +++ b/clang/lib/Basic/ProfileList.cpp @@ -36,8 +36,8 @@ public: bool isEmpty() const { return Sections.empty(); } bool hasPrefix(StringRef Prefix) const { - for (auto &SectionIter : Sections) - if (SectionIter.Entries.count(Prefix) > 0) + for (const auto &It : Sections) + if (It.second.Entries.count(Prefix) > 0) return true; return false; } |
