Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r85c4ef0 r145f1fc  
    1010// Created On       : Sun May 17 21:50:04 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Mon Jul 13 14:38:19 2015
    13 // Update Count     : 184
     12// Last Modified On : Tue Jul 14 12:27:54 2015
     13// Update Count     : 186
    1414//
    1515
     
    530530                init->get_args().push_back( new NameExpr( "0" ) );
    531531                Statement *initStmt = new ExprStmt( noLabels, init );
    532  
     532                std::list<Statement *> initList;
     533                initList.push_back( initStmt );
     534
    533535                UntypedExpr *cond = new UntypedExpr( new NameExpr( "?<?" ) );
    534536                cond->get_args().push_back( new VariableExpr( index ) );
     
    555557                assignExpr->get_args().push_back( srcIndex );
    556558 
    557                 *out++ = new ForStmt( noLabels, initStmt, cond, inc, new ExprStmt( noLabels, assignExpr ) );
     559                *out++ = new ForStmt( noLabels, initList, cond, inc, new ExprStmt( noLabels, assignExpr ) );
    558560        }
    559561
Note: See TracChangeset for help on using the changeset viewer.