Changeset 6c3744e for translator/CodeGen/CodeGenerator2.cc
- Timestamp:
- Jan 19, 2015, 6:29:10 PM (10 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, string, with_gc
- Children:
- f7f6785
- Parents:
- 0b8cd722
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/CodeGen/CodeGenerator2.cc
r0b8cd722 r6c3744e 477 477 478 478 // horrible, horrible hack 479 if ( dynamic_cast<BranchStmt *>( stmts.back() ) != 0 ) {479 if ( dynamic_cast<BranchStmt *>( stmts.back() ) != 0 ) { 480 480 lastBreak = true; 481 481 stmts.pop_back(); … … 485 485 Statement *st = switchStmt->get_branches().back(); 486 486 before << CodeGenerator2::printLabels( st->get_labels()); 487 st->accept( *this );487 st->accept( *this ); 488 488 } // if 489 489 … … 524 524 if ( branchStmt->get_computedTarget() != 0 ) { 525 525 before << "goto *"; 526 branchStmt->get_computedTarget()->accept( *this );526 branchStmt->get_computedTarget()->accept( *this ); 527 527 } // if 528 528 } // if
Note: See TracChangeset
for help on using the changeset viewer.