Changeset 4e5e6cc for src/InitTweak
- Timestamp:
- Jun 7, 2019, 2:54:34 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ef75948
- Parents:
- 5684736
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r5684736 r4e5e6cc 301 301 replacement = new CastExpr( replacement, base->clone() ); 302 302 } 303 size_t replaced = DeclReplacer::replace( dtor, { std::make_pair( objDecl, replacement ) } ); 304 if(replaced == 0) { 305 objDecl->print(std::cerr); 306 std::cerr << "-----" << std::endl; 307 dtor->print(std::cerr); 308 std::cerr << "Failed to replace " << objDecl << std::endl; 309 abort(); 310 } 303 DeclReplacer::replace( dtor, { std::make_pair( objDecl, replacement ) } ); 311 304 dtorFunc->statements->push_back( strict_dynamic_cast<Statement *>( dtor ) ); 312 305
Note: See TracChangeset
for help on using the changeset viewer.