Changeset a32b204 for translator/Tuples/AssignExpand.cc
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 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:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/Tuples/AssignExpand.cc
rb87a5ed ra32b204 24 24 CompoundStmt *newSt = 0; 25 25 if (! extra.empty() ) { 26 if ( ! newSt )26 if ( ! newSt ) 27 27 newSt= new CompoundStmt(std::list<Label>()); 28 28 … … 31 31 32 32 if (! extra2.empty() ) { 33 if ( ! newSt )33 if ( ! newSt ) 34 34 newSt= new CompoundStmt(std::list<Label>()); 35 35 … … 38 38 39 39 if (! replace.empty() ) { 40 if ( ! newSt )40 if ( ! newSt ) 41 41 newSt= new CompoundStmt(std::list<Label>()); 42 42 … … 45 45 } 46 46 47 if ( newSt ) return newSt; else return exprStmt;47 if ( newSt ) return newSt; else return exprStmt; 48 48 } 49 49 … … 72 72 tupleExpr->get_type() == SolvedTupleExpr::MASS ) */ { 73 73 std::list<Expression *> &comps = tupleExpr->get_exprs(); 74 for ( std::list<Expression *>::iterator i = comps.begin(); i != comps.end(); ++i ) {74 for ( std::list<Expression *>::iterator i = comps.begin(); i != comps.end(); ++i ) { 75 75 std::list<Statement *> decls; 76 76 std::list<Statement *> temps; 77 77 std::list<Statement *> assigns; 78 if ( ApplicationExpr *app = dynamic_cast< ApplicationExpr * >(*i) ) {78 if ( ApplicationExpr *app = dynamic_cast< ApplicationExpr * >(*i) ) { 79 79 assert( app->get_args().size() == 2 ); 80 80
Note: See TracChangeset
for help on using the changeset viewer.