Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MLEMutator.cc

    rba3706f rd180746  
    149149
    150150                        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 ) );
    154153                        } else assert(0); // as of this point, all statements of a switch are still CaseStmts
    155154                } // if
     
    233232                // transform break/continue statements into goto to simplify later handling of branches
    234233                delete branchStmt;
    235                 return new BranchStmt( exitLabel, BranchStmt::Goto );
     234                return new BranchStmt( std::list<Label>(), exitLabel, BranchStmt::Goto );
    236235        }
    237236
     
    240239                CompoundStmt *newBody;
    241240                if ( ! (newBody = dynamic_cast<CompoundStmt *>( bodyLoop )) ) {
    242                         newBody = new CompoundStmt();
     241                        newBody = new CompoundStmt( std::list< Label >() );
    243242                        newBody->get_kids().push_back( bodyLoop );
    244243                } // if
Note: See TracChangeset for help on using the changeset viewer.