Ignore:
Timestamp:
Nov 11, 2020, 2:41:34 PM (3 years ago)
Author:
Colby Alexander Parsons <caparsons@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
23954b6
Parents:
6a8882c (diff), 4a36b344 (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:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r6a8882c r21255675  
    423423                }
    424424                catch( SemanticErrorException &e ) {
    425                         errors.append( e );
     425                        if (__pass::on_error (visitor.core, *i, 0))
     426                                errors.append( e );
    426427                }
    427428
     
    683684                // Do not enter (or leave) a new scope if atFunctionTop. Remember to save the result.
    684685                auto guard1 = makeFuncGuard( [this, enterScope = !this->atFunctionTop]() {
    685                         if ( enterScope ) __pass::symtab::enter(core, 0);
     686                        if ( enterScope ) {
     687                                __pass::symtab::enter(core, 0);
     688                                __pass::scope::enter(core, 0);
     689                        }
    686690                }, [this, leaveScope = !this->atFunctionTop]() {
    687                         if ( leaveScope ) __pass::symtab::leave(core, 0);
     691                        if ( leaveScope ) {
     692                                __pass::symtab::leave(core, 0);
     693                                __pass::scope::leave(core, 0);
     694                        }
    688695                });
    689696                ValueGuard< bool > guard2( atFunctionTop );
Note: See TracChangeset for help on using the changeset viewer.