parent
d2202caeda
commit
d79c440382
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue