Ignore:
Timestamp:
Mar 2, 2018, 5:34:51 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, 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:
09c72d5
Parents:
986dd36
git-author:
Rob Schluntz <rschlunt@…> (03/02/18 17:08:09)
git-committer:
Rob Schluntz <rschlunt@…> (03/02/18 17:34:51)
Message:

Minor code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r986dd36 rdd05e12  
    448448                        ResolvExpr::findVoidExpression( resolved, indexer );
    449449                        assert( resolved );
    450                         if ( resolved->get_env() ) {
     450                        if ( resolved->env ) {
    451451                                // Extract useful information and discard new environments. Keeping them causes problems in PolyMutator passes.
    452                                 env->add( *resolved->get_env() );
    453                                 delete resolved->get_env();
    454                                 resolved->set_env( nullptr );
     452                                env->add( *resolved->env );
     453                                delete resolved->env;
     454                                resolved->env = nullptr;
    455455                        } // if
    456456                        delete stmt;
Note: See TracChangeset for help on using the changeset viewer.