Ignore:
Timestamp:
Aug 22, 2016, 3:32:07 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
79970ed
Parents:
e85a8631 (diff), bd9f8be (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ctor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cc

    re85a8631 rf87408e  
    1010// Created On       : Sat May 16 14:59:41 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug 15 20:47:11 2016
    13 // Update Count     : 322
     12// Last Modified On : Sun Aug 21 11:59:37 2016
     13// Update Count     : 325
    1414//
    1515
     
    137137}
    138138
    139 Statement *build_branch( std::string identifier, BranchStmt::Type kind ) {
    140         return new BranchStmt( noLabels, identifier, kind );
     139Statement *build_branch( BranchStmt::Type kind ) {
     140        Statement * ret = new BranchStmt( noLabels, "", kind );
     141        return ret;
     142}
     143Statement *build_branch( std::string *identifier, BranchStmt::Type kind ) {
     144        Statement * ret = new BranchStmt( noLabels, *identifier, kind );
     145        delete identifier;                                                                      // allocated by lexer
     146        return ret;
    141147}
    142148Statement *build_computedgoto( ExpressionNode *ctl ) {
Note: See TracChangeset for help on using the changeset viewer.