Changeset 6c3744e for translator/CodeGen


Ignore:
Timestamp:
Jan 19, 2015, 6:29:10 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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, string, with_gc
Children:
f7f6785
Parents:
0b8cd722
Message:

add list initializer, formatting changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/CodeGen/CodeGenerator2.cc

    r0b8cd722 r6c3744e  
    477477
    478478        // horrible, horrible hack
    479         if ( dynamic_cast<BranchStmt *>( stmts.back()) != 0 ) {
     479        if ( dynamic_cast<BranchStmt *>( stmts.back() ) != 0 ) {
    480480            lastBreak = true;
    481481            stmts.pop_back();
     
    485485            Statement *st = switchStmt->get_branches().back();
    486486            before << CodeGenerator2::printLabels( st->get_labels());
    487             st->accept(*this );
     487            st->accept( *this );
    488488        } // if
    489489     
     
    524524                if ( branchStmt->get_computedTarget() != 0 ) {
    525525                    before << "goto *";
    526                     branchStmt->get_computedTarget()->accept(*this );
     526                    branchStmt->get_computedTarget()->accept( *this );
    527527                } // if
    528528            } // if
Note: See TracChangeset for help on using the changeset viewer.