Changes in src/Virtual/VirtualDtor.cpp [7e4bd9b6:3830c84]
- File:
-
- 1 edited
-
src/Virtual/VirtualDtor.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Virtual/VirtualDtor.cpp
r7e4bd9b6 r3830c84 146 146 147 147 CompoundStmt * dtorBody = mutate( decl->stmts.get() ); 148 // Adds the following to the startof any actor/message dtor:148 // Adds the following to the end of any actor/message dtor: 149 149 // __CFA_dtor_shutdown( this ); 150 dtorBody->push_front( 151 new IfStmt( decl->location, 152 new UntypedExpr ( 153 decl->location, 154 new NameExpr( decl->location, "__CFA_dtor_shutdown" ), 155 { 156 new NameExpr( decl->location, decl->params.at(0)->name ) 157 } 158 ), 159 new ReturnStmt( decl->location, nullptr ) 160 ) 161 ); 150 dtorBody->push_front( new ExprStmt( 151 decl->location, 152 new UntypedExpr ( 153 decl->location, 154 new NameExpr( decl->location, "__CFA_dtor_shutdown" ), 155 { 156 new NameExpr( decl->location, decl->params.at(0)->name ) 157 } 158 ) 159 )); 162 160 return; 163 161 }
Note:
See TracChangeset
for help on using the changeset viewer.