diff options
author | Hamza Sood <hamza_sood@me.com> | 2017-12-27 18:05:29 +0000 |
---|---|---|
committer | Hamza Sood <hamza_sood@me.com> | 2017-12-27 18:05:29 +0000 |
commit | d79c44038216392f0b89f8ba5640cbc798a5470b (patch) | |
tree | 0b0a06129d9afce26337c23b0a24c43fa2cd2efe /clang/lib/Sema/SemaLookup.cpp | |
parent | d2202caedad72be729077732abd56bf935f5aa42 (diff) | |
download | bcm5719-llvm-d79c44038216392f0b89f8ba5640cbc798a5470b.tar.gz bcm5719-llvm-d79c44038216392f0b89f8ba5640cbc798a5470b.zip |
[NFC] Small const correctness fix
llvm-svn: 321494
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index d3f91a4e273..a9db973851d 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -1589,7 +1589,7 @@ bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { return false; // Find the extra places where we need to look. - llvm::DenseSet<Module*> &LookupModules = SemaRef.getLookupModules(); + const auto &LookupModules = SemaRef.getLookupModules(); if (LookupModules.empty()) return false; @@ -1604,7 +1604,8 @@ bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { // Check whether DeclModule is transitively exported to an import of // the lookup set. return std::any_of(LookupModules.begin(), LookupModules.end(), - [&](Module *M) { return M->isModuleVisible(DeclModule); }); + [&](const Module *M) { + return M->isModuleVisible(DeclModule); }); } bool Sema::isVisibleSlow(const NamedDecl *D) { |