Ensure that reexpansion does not lose scopes.

This commit is contained in:
David Ungar
2019-09-22 09:01:52 -07:00
parent 9674643779
commit 10583f89c6
3 changed files with 25 additions and 1 deletions

View File

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