ASTScope: AbstractFunctionBodyScope scopes are always current

This commit is contained in:
Slava Pestov
2020-09-22 01:28:45 -04:00
parent 8f586d011c
commit d3d1ceec58
2 changed files with 0 additions and 15 deletions

View File

@@ -1695,14 +1695,6 @@ bool ASTSourceFileScope::isCurrentIfWasExpanded() const {
return SF->getTopLevelDecls().size() == numberOfDeclsAlreadySeen;
}
void AbstractFunctionBodyScope::beCurrent() {
bodyWhenLastExpanded = decl->getBody(false);
}
bool AbstractFunctionBodyScope::isCurrentIfWasExpanded() const {
// Pass in false to keep the compiler from synthesizing one.
return bodyWhenLastExpanded == decl->getBody(false);
}
// Try to avoid the work of counting
static const bool assumeVarsDoNotGetAdded = true;