Changes in / [d1ab5331:99ee64d]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    rd1ab5331 r99ee64d  
    1010// Created On       : Wed Jan 13 16:29:30 2016
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Mon May 02 14:57:45 2016
     12// Last Modified On : Wed May 04 14:51:33 2016
    1313// Update Count     : 30
    1414//
     
    401401        void insertDtors( Iterator begin, Iterator end, OutputIterator out ) {
    402402                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
    405406                        if ( ExprStmt * exprStmt = dynamic_cast< ExprStmt * >( *it ) ) {
    406407                                ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * >( exprStmt->get_expr() );
     
    418419                        } else {
    419420                                // 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.
    420422                                *out++ = (*it)->clone();
    421423                        }
Note: See TracChangeset for help on using the changeset viewer.