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:
John McCall
2010-05-01 00:40:08 +00:00
parent 096619eb52
commit 0b66eb38c7
8 changed files with 48 additions and 60 deletions

View File

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