Changeset 2bdf50d
- Timestamp:
- May 4, 2016, 2:52:07 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 99ee64d
- Parents:
- a1d6d80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
ra1d6d80 r2bdf50d 10 10 // Created On : Wed Jan 13 16:29:30 2016 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Mon May 02 14:57:45201612 // Last Modified On : Wed May 04 14:51:33 2016 13 13 // Update Count : 30 14 14 // … … 401 401 void insertDtors( Iterator begin, Iterator end, OutputIterator out ) { 402 402 for ( Iterator it = begin ; it != end ; ++it ) { 403 // remove if instrinsic destructor statement 404 // xxx - test user manually calling intrinsic functions - what happens? 403 // remove if instrinsic destructor statement. Note that this is only called 404 // on lists of implicit dtors, so if the user manually calls an intrinsic 405 // dtor then the call will still be generated 405 406 if ( ExprStmt * exprStmt = dynamic_cast< ExprStmt * >( *it ) ) { 406 407 ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * >( exprStmt->get_expr() ); … … 418 419 } else { 419 420 // could also be a compound statement with a loop, in the case of an array 421 // xxx - write code to remove loop calling intrinsic dtor. 420 422 *out++ = (*it)->clone(); 421 423 }
Note: See TracChangeset
for help on using the changeset viewer.