Changeset a465caff for src/ResolvExpr
- Timestamp:
- Aug 8, 2016, 4:20:29 PM (9 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:
- 0853178
- Parents:
- 242d458
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/ResolvExpr/Resolver.cc ¶
r242d458 ra465caff 550 550 } 551 551 552 // xxx - todo553 // if ( InitTweak::isIntrinsicCallStmt( ctorInit->get_ctor() ) ) {554 // // can reduce the constructor down to a SingleInit using the555 // // second argument from the ctor call556 // }557 558 552 if ( InitTweak::isIntrinsicSingleArgCallStmt( ctorInit->get_dtor() ) ) { 559 553 delete ctorInit->get_dtor(); 560 554 ctorInit->set_dtor( NULL ); 561 555 } 556 557 // xxx - todo -- what about arrays? 558 // if ( dtor == NULL && InitTweak::isIntrinsicCallStmt( ctorInit->get_ctor() ) ) { 559 // // can reduce the constructor down to a SingleInit using the 560 // // second argument from the ctor call, since 561 // delete ctorInit->get_ctor(); 562 // ctorInit->set_ctor( NULL ); 563 564 // Expression * arg = 565 // ctorInit->set_init( new SingleInit( arg ) ); 566 // } 562 567 } 563 568 } // namespace ResolvExpr
Note: See TracChangeset
for help on using the changeset viewer.