Changes in src/Parser/StatementNode.cc [145f1fc:59db689]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
r145f1fc r59db689 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 14:59:41 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Tue Jul 14 12:20:44201513 // Update Count : 2111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jun 6 23:25:41 2015 13 // Update Count : 19 14 14 // 15 15 … … 271 271 assert( ctl != 0 ); 272 272 273 std::list<Statement *> init; 274 if ( ctl->get_init() != 0 ) { 275 buildList( ctl->get_init(), init ); 276 } 273 Statement *stmt = 0; 274 if ( ctl->get_init() != 0 ) 275 stmt = ctl->get_init()->build(); 277 276 278 277 Expression *cond = 0; … … 284 283 incr = ctl->get_change()->build(); 285 284 286 return new ForStmt( labs, init, cond, incr, branches.front() );285 return new ForStmt( labs, stmt, cond, incr, branches.front() ); 287 286 } 288 287 case Switch:
Note:
See TracChangeset
for help on using the changeset viewer.