Changeset 1b31345 for src/InitTweak
- Timestamp:
- Apr 26, 2016, 3:01:39 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c2ce2350
- Parents:
- 668edd6b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixInit.cc
r668edd6b r1b31345 10 10 // Created On : Wed Jan 13 16:29:30 2016 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Apr 26 1 1:35:31201612 // Last Modified On : Tue Apr 26 14:57:13 2016 13 13 // Update Count : 30 14 14 // … … 228 228 // xxx - handle multiple return values 229 229 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() ); 230 233 for ( Type * result : appExpr->get_results() ) { 231 234 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.