diff options
author | Mark de Wever <koraq@xs4all.nl> | 2019-12-17 21:54:32 +0100 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2019-12-17 21:54:32 +0100 |
commit | 3ec6128daeeaadde7dd2eca8b343a56f60a8364d (patch) | |
tree | ba1d51db1d105b6ea2075ba2ee6a73f999cee5fd /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | 385339034f08212d95ade89fdbacb014d86be1e2 (diff) | |
download | bcm5719-llvm-3ec6128daeeaadde7dd2eca8b343a56f60a8364d.tar.gz bcm5719-llvm-3ec6128daeeaadde7dd2eca8b343a56f60a8364d.zip |
[Sema] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Differential Revision: https://reviews.llvm.org/D71529
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index e75aca4d81e..b4299b615a6 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -1309,7 +1309,7 @@ void ResultBuilder::AddResult(Result R, DeclContext *CurContext, /// Motivating case is const_iterator begin() const vs iterator begin(). auto &OverloadSet = OverloadMap[std::make_pair( CurContext, Method->getDeclName().getAsOpaqueInteger())]; - for (const DeclIndexPair& Entry : OverloadSet) { + for (const DeclIndexPair Entry : OverloadSet) { Result &Incumbent = Results[Entry.second]; switch (compareOverloads(*Method, *cast<CXXMethodDecl>(Incumbent.Declaration), |