Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MLEMutator.cc

    r397c101a r9bdb8b7  
    231231
    232232        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
    233240                // only generate these when needed
    234                 if( !e.isContUsed() && !e.isBreakUsed() ) return bodyLoop;
    235 
    236                 // ensure loop body is a block
    237                 CompoundStmt * newBody = new CompoundStmt();
    238                 newBody->get_kids().push_back( bodyLoop );
    239241
    240242                if ( e.isContUsed() ) {
Note: See TracChangeset for help on using the changeset viewer.