Changeset b8baa37


Ignore:
Timestamp:
Mar 2, 2018, 5:34:52 PM (6 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:
938dd75
Parents:
09c72d5
git-author:
Rob Schluntz <rschlunt@…> (03/02/18 17:16:34)
git-committer:
Rob Schluntz <rschlunt@…> (03/02/18 17:34:52)
Message:

Clone full environment rather than trim for destructors (temporary fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r09c72d5 rb8baa37  
    187187                };
    188188
    189                 class FixCopyCtors final : public WithStmtsToAdd, public WithShortCircuiting, public WithVisitorRef<FixCopyCtors> {
     189                class FixCopyCtors final : public WithStmtsToAdd, public WithShortCircuiting, public WithVisitorRef<FixCopyCtors>, public WithTypeSubstitution {
    190190                  public:
    191191                        FixCopyCtors( UnqCount & unqCount ) : unqCount( unqCount ){}
     
    636636                                // take relevant bindings from environment
    637637                                assert( ! dtor->env );
    638                                 dtor->env =  TypeSubstitution::newFromExpr( dtor, impCpCtorExpr->env );
     638                                dtor->env =  maybeClone( env );
    639639                                stmtsToAddAfter.push_back( new ExprStmt( dtor ) );
    640640                        } // for
Note: See TracChangeset for help on using the changeset viewer.