- Timestamp:
- Mar 20, 2017, 3:52:47 PM (8 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:
- 2c4bc81
- Parents:
- 14a33790
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r14a33790 r233e4d9 764 764 } 765 765 } else { 766 stmtsToAddAfter.push_back( ctor ); 766 ImplicitCtorDtorStmt * implicit = safe_dynamic_cast< ImplicitCtorDtorStmt * > ( ctor ); 767 ExprStmt * ctorStmt = dynamic_cast< ExprStmt * >( implicit->get_callStmt() ); 768 ApplicationExpr * ctorCall = nullptr; 769 if ( ctorStmt && (ctorCall = isIntrinsicCallExpr( ctorStmt->get_expr() )) && ctorCall->get_args().size() == 2 ) { 770 // clean up intrinsic copy constructor calls by making them into SingleInits 771 objDecl->set_init( new SingleInit( ctorCall->get_args().back() ) ); 772 ctorCall->get_args().pop_back(); 773 } else { 774 stmtsToAddAfter.push_back( ctor ); 775 objDecl->set_init( NULL ); 776 ctorInit->set_ctor( NULL ); 777 } 767 778 } // if 768 objDecl->set_init( NULL );769 ctorInit->set_ctor( NULL );770 779 } else if ( Initializer * init = ctorInit->get_init() ) { 771 780 objDecl->set_init( init );
Note: See TracChangeset
for help on using the changeset viewer.