Ignore:
Timestamp:
Mar 15, 2016, 3:16:53 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
dac0aa9
Parents:
972e6f7
Message:

generate correct empty list initializer, ensure function return value is not incorrectly destructed before it is returned, do not add src parameter to autogenerated routines when they take a single argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.cc

    r972e6f7 r5b40f30  
    8080                fExpr->get_args().push_back( dstselect );
    8181
    82                 Expression *srcselect = new MemberExpr( member, new VariableExpr( srcParam ) );
    83                 fExpr->get_args().push_back( srcselect );
     82                if ( srcParam ) {
     83                        Expression *srcselect = new MemberExpr( member, new VariableExpr( srcParam ) );
     84                        fExpr->get_args().push_back( srcselect );
     85                }
    8486
    8587                *out++ = new ExprStmt( noLabels, fExpr );
Note: See TracChangeset for help on using the changeset viewer.