Changeset 1ced874 for src/GenPoly/PolyMutator.cc
- Timestamp:
- Sep 6, 2016, 4:36:29 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, 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:
- e76acbe
- Parents:
- 0362d42 (diff), f04a8b81 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/GenPoly/PolyMutator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/PolyMutator.cc
r0362d42 r1ced874 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.