Changes in src/ControlStruct/MLEMutator.cc [ba3706f:d180746]
- File:
-
- 1 edited
-
src/ControlStruct/MLEMutator.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MLEMutator.cc
rba3706f rd180746 149 149 150 150 if ( CaseStmt * c = dynamic_cast< CaseStmt * >( statements.back() ) ) { 151 Statement * stmt = new BranchStmt( Label("brkLabel"), BranchStmt::Break ); 152 stmt->labels.push_back( brkLabel ); 153 c->get_statements().push_back( stmt ); 151 std::list<Label> temp; temp.push_back( brkLabel ); 152 c->get_statements().push_back( new BranchStmt( temp, Label("brkLabel"), BranchStmt::Break ) ); 154 153 } else assert(0); // as of this point, all statements of a switch are still CaseStmts 155 154 } // if … … 233 232 // transform break/continue statements into goto to simplify later handling of branches 234 233 delete branchStmt; 235 return new BranchStmt( exitLabel, BranchStmt::Goto );234 return new BranchStmt( std::list<Label>(), exitLabel, BranchStmt::Goto ); 236 235 } 237 236 … … 240 239 CompoundStmt *newBody; 241 240 if ( ! (newBody = dynamic_cast<CompoundStmt *>( bodyLoop )) ) { 242 newBody = new CompoundStmt( );241 newBody = new CompoundStmt( std::list< Label >() ); 243 242 newBody->get_kids().push_back( bodyLoop ); 244 243 } // if
Note:
See TracChangeset
for help on using the changeset viewer.