Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cpp

    rc92bdcc r525f7ad  
    211211        buildMoveList( forctl->init, astinit );
    212212
     213        if ( forctl->range_over ) {
     214                ast::Expr * range_over = maybeMoveBuild( forctl->range_over );
     215                delete forctl;
     216                return new ast::ForStmt( location,
     217                        std::move( astinit ),
     218                        range_over,
     219                        buildMoveSingle( stmt ),
     220                        buildMoveOptional( else_ )
     221                );
     222        }
     223
    213224        ast::Expr * astcond = nullptr;                                          // maybe empty
    214225        astcond = maybeMoveBuild( forctl->condition );
Note: See TracChangeset for help on using the changeset viewer.