- File:
-
- 1 edited
-
src/ControlStruct/MLEMutator.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MLEMutator.cc
r397c101a r9bdb8b7 231 231 232 232 Statement *MLEMutator::mutateLoop( Statement *bodyLoop, Entry &e ) { 233 // ensure loop body is a block 234 CompoundStmt *newBody; 235 if ( ! (newBody = dynamic_cast<CompoundStmt *>( bodyLoop )) ) { 236 newBody = new CompoundStmt(); 237 newBody->get_kids().push_back( bodyLoop ); 238 } // if 239 233 240 // only generate these when needed 234 if( !e.isContUsed() && !e.isBreakUsed() ) return bodyLoop;235 236 // ensure loop body is a block237 CompoundStmt * newBody = new CompoundStmt();238 newBody->get_kids().push_back( bodyLoop );239 241 240 242 if ( e.isContUsed() ) {
Note:
See TracChangeset
for help on using the changeset viewer.