Changeset 2acf5fc for src/Parser/StatementNode.cc
- Timestamp:
- Aug 22, 2016, 3:11:00 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 837a17c, bd9f8be, c1c1112
- Parents:
- ab57786 (diff), 8d2844a (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
rab57786 r2acf5fc 54 54 // find end of list and maintain previous pointer 55 55 for ( StatementNode * curr = prev; curr != nullptr; curr = (StatementNode *)curr->get_next() ) { 56 StatementNode *node = dynamic_cast< StatementNode * >(curr); 57 assert( node ); 56 StatementNode *node = safe_dynamic_cast< StatementNode * >(curr); 58 57 assert( dynamic_cast< CaseStmt * >(node->stmt.get()) ); 59 58 prev = curr; … … 166 165 std::list< Statement * > branches; 167 166 buildMoveList< Statement, StatementNode >( catch_stmt, branches ); 168 CompoundStmt *tryBlock = dynamic_cast< CompoundStmt * >(maybeMoveBuild< Statement >(try_stmt)); 169 assert( tryBlock ); 167 CompoundStmt *tryBlock = safe_dynamic_cast< CompoundStmt * >(maybeMoveBuild< Statement >(try_stmt)); 170 168 FinallyStmt *finallyBlock = dynamic_cast< FinallyStmt * >(maybeMoveBuild< Statement >(finally_stmt) ); 171 169 return new TryStmt( noLabels, tryBlock, branches, finallyBlock );
Note: See TracChangeset
for help on using the changeset viewer.