Changeset dcd73d1 for src/GenPoly/PolyMutator.cc
- Timestamp:
- Sep 5, 2016, 9:49:53 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 621701d
- Parents:
- b16898e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/PolyMutator.cc
rb16898e rdcd73d1 30 30 31 31 void PolyMutator::mutateStatementList( std::list< Statement* > &statements ) { 32 SemanticError errors; 33 32 34 for ( std::list< Statement* >::iterator i = statements.begin(); i != statements.end(); ++i ) { 33 35 if ( ! stmtsToAddAfter.empty() ) { 34 36 statements.splice( i, stmtsToAddAfter ); 35 37 } // if 36 *i = (*i)->acceptMutator( *this ); 38 try { 39 *i = (*i)->acceptMutator( *this ); 40 } catch ( SemanticError &e ) { 41 errors.append( e ); 42 } // try 37 43 if ( ! stmtsToAdd.empty() ) { 38 44 statements.splice( i, stmtsToAdd ); … … 42 48 statements.splice( statements.end(), stmtsToAddAfter ); 43 49 } // if 50 if ( ! errors.isEmpty() ) { 51 throw errors; 52 } 44 53 } 45 54
Note: See TracChangeset
for help on using the changeset viewer.