[NFC] Small const correctness fix

llvm-svn: 321494
This commit is contained in:
Hamza Sood 2017-12-27 18:05:29 +00:00
parent d2202caeda
commit d79c440382
1 changed files with 3 additions and 2 deletions

View File

@ -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) {