Changes in / [d1ab5331:99ee64d]
- File:
-
- 1 edited
-
src/InitTweak/FixInit.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
rd1ab5331 r99ee64d 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.