Changeset b54ad9c
- Timestamp:
- Aug 28, 2018, 6:28:08 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a42a654
- Parents:
- d5916ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
rd5916ce rb54ad9c 1123 1123 if ( isCtor ) { 1124 1124 function->statements->push_front( callStmt ); 1125 } else { 1125 } else { // TODO: don't generate destructor function/object for intrinsic calls 1126 1126 // destructor statements should be added at the end 1127 1127 // function->get_statements()->push_back( callStmt ); 1128 1128 1129 // Destructor _dtor0 = {&b.a1, (void (*)(void *)_destroy_A };1129 // __Destructor _dtor0 = { (void *)&b.a1, (void (*)(void *)_destroy_A }; 1130 1130 std::list< Statement * > stmtsToAdd; 1131 1131 … … 1134 1134 assertf( dtorStructDestroy, "builtin __destroy_Destructor not found." ); 1135 1135 1136 Expression * thisExpr = new AddressExpr( new VariableExpr( thisParam) );1136 Expression * thisExpr = new CastExpr( new AddressExpr( new VariableExpr( thisParam ) ), new PointerType( Type::Qualifiers(), new VoidType( Type::Qualifiers() ) ) ); 1137 1137 Expression * dtorExpr = new VariableExpr( getDtorFunc( thisParam, callStmt, stmtsToAdd ) ); 1138 1138
Note: See TracChangeset
for help on using the changeset viewer.