Ignore:
Timestamp:
Sep 25, 2017, 7:55:09 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
1bc749f, 2b7bf59, a2d4d1c
Parents:
888339e
Message:

Fix previsit in AutogenTupleRoutines?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.cc

    r888339e ra139c11  
    754754                declsToAddBefore.push_back( dtorDecl );
    755755                declsToAddBefore.push_back( assignDecl ); // assignment should come last since it uses copy constructor in return
    756 
    757                 return;
    758756        }
    759757
    760758        void AutogenTupleRoutines::previsit( FunctionDecl *functionDecl ) {
    761759                visit_children = false;
    762                 functionDecl->set_functionType( maybeMutate( functionDecl->type, *visitor ) );
     760                maybeAccept( functionDecl->type, *visitor );
    763761                functionNesting += 1;
    764                 functionDecl->set_statements( maybeMutate( functionDecl->statements, *visitor ) );
     762                maybeAccept( functionDecl->statements, *visitor );
    765763                functionNesting -= 1;
    766764        }
Note: See TracChangeset for help on using the changeset viewer.