Changeset ca1c11f for src/InitTweak
- Timestamp:
- Jan 20, 2016, 12:36:27 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 771b3c3
- Parents:
- f1e012b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
rf1e012b rca1c11f 10 10 // Created On : Wed Jan 13 16:29:30 2016 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Jan 19 1 3:25:13201613 // Update Count : 2712 // Last Modified On : Tue Jan 19 16:36:59 2016 13 // Update Count : 30 14 14 // 15 15 … … 73 73 CompoundStmt * FixInit::mutate( CompoundStmt * compoundStmt ) { 74 74 std::list< Statement * > & statements = compoundStmt->get_kids(); 75 for ( std::list< Statement * >::iterator it = statements.begin(); it != statements.end(); ++it) {75 for ( std::list< Statement * >::iterator it = statements.begin(); it != statements.end(); ) { 76 76 // remove if instrinsic destructor statement 77 77 // xxx - test user manually calling intrinsic functions - what happens? … … 81 81 if ( function->get_var()->get_name() == "^?{}" && function->get_var()->get_linkage() == LinkageSpec::Intrinsic ) { 82 82 statements.erase(it++); 83 continue; 84 } else { 83 85 } 84 86 } 85 87 } 86 88 } 89 ++it; 87 90 } 88 91 // mutate non-destructor statements 89 return Mutator::mutate( compoundStmt );92 return PolyMutator::mutate( compoundStmt ); 90 93 } 91 94
Note:
See TracChangeset
for help on using the changeset viewer.