It turns out that basically every caller to RequireCompleteDeclContext
already knows what context it's looking in. Just pass that context in instead of (questionably) recalculating it. llvm-svn: 102818
This commit is contained in:
@@ -2286,7 +2286,7 @@ void Sema::CodeCompleteQualifiedId(Scope *S, CXXScopeSpec &SS,
|
||||
|
||||
// Try to instantiate any non-dependent declaration contexts before
|
||||
// we look in them.
|
||||
if (!isDependentScopeSpecifier(SS) && RequireCompleteDeclContext(SS))
|
||||
if (!isDependentScopeSpecifier(SS) && RequireCompleteDeclContext(SS, Ctx))
|
||||
return;
|
||||
|
||||
ResultBuilder Results(*this);
|
||||
|
||||
Reference in New Issue
Block a user