@@ -2429,7 +2429,7 @@ bool Compiler<Emitter>::VisitArrayInitLoopExpr(const ArrayInitLoopExpr *E) {
2429
2429
// and the RHS is our SubExpr.
2430
2430
for (size_t I = 0 ; I != Size; ++I) {
2431
2431
ArrayIndexScope<Emitter> IndexScope (this , I);
2432
- BlockScope <Emitter> BS (this );
2432
+ LocalScope <Emitter> BS (this );
2433
2433
2434
2434
if (!this ->visitArrayElemInit (I, SubExpr, SubExprT))
2435
2435
return false ;
@@ -4140,7 +4140,7 @@ bool Compiler<Emitter>::VisitCXXStdInitializerListExpr(
4140
4140
4141
4141
template <class Emitter >
4142
4142
bool Compiler<Emitter>::VisitStmtExpr(const StmtExpr *E) {
4143
- BlockScope <Emitter> BS (this );
4143
+ LocalScope <Emitter> BS (this );
4144
4144
StmtExprScope<Emitter> SS (this );
4145
4145
4146
4146
const CompoundStmt *CS = E->getSubStmt ();
@@ -5111,7 +5111,7 @@ bool Compiler<Emitter>::VisitCallExpr(const CallExpr *E) {
5111
5111
}
5112
5112
}
5113
5113
5114
- BlockScope <Emitter> CallScope (this , ScopeKind::Call);
5114
+ LocalScope <Emitter> CallScope (this , ScopeKind::Call);
5115
5115
5116
5116
QualType ReturnType = E->getCallReturnType (Ctx.getASTContext ());
5117
5117
OptPrimType T = classify (ReturnType);
@@ -5475,7 +5475,7 @@ template <class Emitter> bool Compiler<Emitter>::visitStmt(const Stmt *S) {
5475
5475
5476
5476
template <class Emitter >
5477
5477
bool Compiler<Emitter>::visitCompoundStmt(const CompoundStmt *S) {
5478
- BlockScope <Emitter> Scope (this );
5478
+ LocalScope <Emitter> Scope (this );
5479
5479
for (const auto *InnerStmt : S->body ())
5480
5480
if (!visitStmt (InnerStmt))
5481
5481
return false ;
@@ -6211,7 +6211,7 @@ bool Compiler<Emitter>::compileConstructor(const CXXConstructorDecl *Ctor) {
6211
6211
InitLinkScope<Emitter> InitScope (this , InitLink::This ());
6212
6212
for (const auto *Init : Ctor->inits ()) {
6213
6213
// Scope needed for the initializers.
6214
- BlockScope <Emitter> Scope (this );
6214
+ LocalScope <Emitter> Scope (this );
6215
6215
6216
6216
const Expr *InitExpr = Init->getInit ();
6217
6217
if (const FieldDecl *Member = Init->getMember ()) {
0 commit comments