Changeset f46bfd2f for src/InitTweak
- Timestamp:
- Jun 6, 2019, 3:53:59 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:
- 0b73f0c, 1a4323e, 7cc0344
- Parents:
- 546e712
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r546e712 rf46bfd2f 288 288 static UniqueName dtorNamer( "__cleanup_dtor" ); 289 289 std::string name = dtorNamer.newName(); 290 if(name == "__cleanup_dtor8") {291 objDecl->print(std::cerr);292 std::cerr << "-----" << std::endl;293 dtor->print(std::cerr);294 }295 290 FunctionDecl * dtorFunc = FunctionDecl::newFunction( name, SymTab::genDefaultType( objDecl->type->stripReferences(), false ), new CompoundStmt() ); 296 291 stmtsToAdd.push_back( new DeclStmt( dtorFunc ) ); … … 308 303 size_t replaced = DeclReplacer::replace( dtor, { std::make_pair( objDecl, replacement ) } ); 309 304 if(replaced == 0) { 305 objDecl->print(std::cerr); 306 std::cerr << "-----" << std::endl; 307 dtor->print(std::cerr); 310 308 std::cerr << "Failed to replace " << objDecl << std::endl; 311 309 abort();
Note: See TracChangeset
for help on using the changeset viewer.