mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Ensure that reexpansion does not lose scopes.
This commit is contained in:
@@ -1734,7 +1734,7 @@ bool ASTScopeImpl::reexpandIfObsolete(ScopeCreator &scopeCreator) {
|
||||
ASTScopeAssert(wasEverExpanded(), "Cannot be current if unexpanded.");
|
||||
return false;
|
||||
}
|
||||
reexpand(scopeCreator);
|
||||
assertThatTreeDoesNotShrink([&] { this->reexpand(scopeCreator); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user