Visit the rest of an iteration statement in NodeRemover
authorMikko Rasa <tdb@tdb.fi>
Fri, 7 Jun 2019 17:27:57 +0000 (20:27 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 7 Jun 2019 17:27:57 +0000 (20:27 +0300)
source/programcompiler.cpp

index 7cf79515234bb445ef781d0c39be60c7d749561f..0559d41e4023fedcf4d485e18049c48b21f798b4 100644 (file)
@@ -1687,6 +1687,7 @@ void ProgramCompiler::NodeRemover::visit(Iteration &iter)
 {
        if(to_remove.count(iter.init_statement.get()))
                iter.init_statement = 0;
+       TraversingVisitor::visit(iter);
 }