Changeset 0992849
- Timestamp:
- Feb 1, 2018, 4:33:00 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 624b722d
- Parents:
- 295e5071
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Expression.cc
r295e5071 r0992849 613 613 delete result; 614 614 result = nullptr; 615 if ( ! body.empty() ) { 615 if ( ! returnDecls.empty() ) { 616 // prioritize return decl for result type, since if a return decl exists, then 617 // the StmtExpr is currently in an intermediate state where the body will always 618 // give a void result type. 619 result = returnDecls.front()->get_type()->clone(); 620 } else if ( ! body.empty() ) { 616 621 if ( ExprStmt * exprStmt = dynamic_cast< ExprStmt * >( body.back() ) ) { 617 622 result = maybeClone( exprStmt->expr->result );
Note: See TracChangeset
for help on using the changeset viewer.