Changeset 435e75f


Ignore:
Timestamp:
Jun 29, 2017, 5:41:12 PM (7 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:
a4b3525, f7cb0bc
Parents:
a12d5aa
Message:

fix dropped environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    ra12d5aa r435e75f  
    386386                // discard InitExpr wrapper and retain relevant pieces
    387387                newExpr = initExpr->get_expr();
    388                 singleInit->get_value()->set_env( initExpr->get_env() );
     388                newExpr->set_env( initExpr->get_env() );
    389389                initExpr->set_expr( nullptr );
    390390                initExpr->set_env( nullptr );
Note: See TracChangeset for help on using the changeset viewer.