Changeset ee61248


Ignore:
Timestamp:
Mar 1, 2018, 4:59:39 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:
244b934
Parents:
2ec65ad
Message:

Fix a missing type binding problem in generated destructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r2ec65ad ree61248  
    634634                        // add destructors after current statement
    635635                        for ( Expression * dtor : dtors ) {
     636                                // take relevant bindings from environment
     637                                assert( ! dtor->env );
     638                                dtor->env =  TypeSubstitution::newFromExpr( dtor, impCpCtorExpr->env );
    636639                                stmtsToAddAfter.push_back( new ExprStmt( dtor ) );
    637640                        } // for
Note: See TracChangeset for help on using the changeset viewer.