Changeset b8baa37


Ignore:
Timestamp:
Mar 2, 2018, 5:34:52 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, 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.