Changeset e4d6335 for src/InitTweak


Ignore:
Timestamp:
Sep 21, 2017, 1:16:26 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
22bc276
Parents:
47b5b63
Message:

Convert AutogenerateRoutines to PassVisitor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r47b5b63 re4d6335  
    819819                                        assert( ! ctorInit->get_ctor() || ! ctorInit->get_init() );
    820820                                        Statement * dtor = ctorInit->get_dtor();
     821                                        // don't need to call intrinsic dtor, because it does nothing, but
     822                                        // non-intrinsic dtors must be called
    821823                                        if ( dtor && ! isIntrinsicSingleArgCallStmt( dtor ) ) {
    822                                                 // don't need to call intrinsic dtor, because it does nothing, but
    823                                                 // non-intrinsic dtors must be called
     824                                                // set dtor location to the object's location for error messages
     825                                                ctorInit->dtor->location = objDecl->location;
    824826                                                reverseDeclOrder.front().push_front( objDecl );
    825827                                        } // if
Note: See TracChangeset for help on using the changeset viewer.