Skip to content

Commit 7d2203e

Browse files
author
David Ungar
committed
Count AST ancestor scopes instead of children when last expanded
1 parent c25de6a commit 7d2203e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTScopeCreation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ void ASTScopeImpl::reexpand(ScopeCreator &scopeCreator) {
17501750
auto astAncestorScopes = rescueASTAncestorScopesForReuseFromMeOrDescendants();
17511751
disownDescendants(scopeCreator);
17521752
// If the expansion recurses back into the tree for lookup, the ASTAncestor
1753-
// scopes will have already been rescued and won't be found! HERE
1753+
// scopes will have already been rescued and won't be found!
17541754
expandAndBeCurrent(scopeCreator);
17551755
replaceASTAncestorScopes(astAncestorScopes);
17561756
}

0 commit comments

Comments
 (0)