File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4033,7 +4033,7 @@ template <class Emitter> bool Compiler<Emitter>::visitLoopBody(const Stmt *S) {
40334033 return true ;
40344034
40354035 if (const auto *CS = dyn_cast<CompoundStmt>(S)) {
4036- for (auto *InnerStmt : CS->body ())
4036+ for (const auto *InnerStmt : CS->body ())
40374037 if (!visitStmt (InnerStmt))
40384038 return false ;
40394039 return true ;
@@ -4045,7 +4045,7 @@ template <class Emitter> bool Compiler<Emitter>::visitLoopBody(const Stmt *S) {
40454045template <class Emitter >
40464046bool Compiler<Emitter>::visitCompoundStmt(const CompoundStmt *S) {
40474047 BlockScope<Emitter> Scope (this );
4048- for (auto *InnerStmt : S->body ())
4048+ for (const auto *InnerStmt : S->body ())
40494049 if (!visitStmt (InnerStmt))
40504050 return false ;
40514051 return true ;
You can’t perform that action at this time.
0 commit comments