Ignore:
Timestamp:
May 14, 2015, 1:54:02 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
5c7fb6c
Parents:
c11e31c (diff), b1a6d6b (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.
Message:

update merged files from master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/ResolvExpr/Resolver.cc

    rc11e31c r4bf5298  
    192192
    193193    void Resolver::visit( ForStmt *forStmt ) {
     194        // SymTab::Indexer::visit( forStmt );
    194195        Expression *newExpr;
     196        // for statements introduce a level of scope
     197        enterScope();
     198        maybeAccept( forStmt->get_initialization(), *this );
    195199        if ( forStmt->get_condition() ) {
    196200            newExpr = findSingleExpression( forStmt->get_condition(), *this );
     
    204208            forStmt->set_increment( newExpr );
    205209        } // if
    206  
    207         Visitor::visit( forStmt );
     210
     211        maybeAccept( forStmt->get_condition(), *this );
     212        maybeAccept( forStmt->get_increment(), *this );
     213        maybeAccept( forStmt->get_body(), *this );
     214        leaveScope();
    208215    }
    209216
Note: See TracChangeset for help on using the changeset viewer.