Changeset 2bdf50d


Ignore:
Timestamp:
May 4, 2016, 2:52:07 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

update comment in insertDtors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    ra1d6d80 r2bdf50d  
    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.