Changeset 1b31345


Ignore:
Timestamp:
Apr 26, 2016, 3:01:39 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
c2ce2350
Parents:
668edd6b
Message:

attempt to ensure correct type substitution is passed along to ImplicitCopyCtorExpr?'s callExpr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    r668edd6b r1b31345  
    1010// Created On       : Wed Jan 13 16:29:30 2016
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Apr 26 11:35:31 2016
     12// Last Modified On : Tue Apr 26 14:57:13 2016
    1313// Update Count     : 30
    1414//
     
    228228                // xxx - handle multiple return values
    229229                ApplicationExpr * callExpr = impCpCtorExpr->get_callExpr();
     230                // xxx - is this right? callExpr may not have the right environment, because it was attached
     231                // at a higher level. Trying to pass that environment along.
     232                callExpr->set_env( impCpCtorExpr->get_env()->clone() );
    230233                for ( Type * result : appExpr->get_results() ) {
    231234                        ObjectDecl * ret = new ObjectDecl( retNamer.newName(), DeclarationNode::NoStorageClass, LinkageSpec::C, 0, result->clone(), new SingleInit( callExpr ) );
Note: See TracChangeset for help on using the changeset viewer.