Changeset 9ea38de for src/AST/Pass.hpp


Ignore:
Timestamp:
Jun 25, 2019, 11:26:30 AM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bcb311b
Parents:
28af389
Message:

Fix ast::Pass guard classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    r28af389 r9ea38de  
    209209        /// Internal RAII guard for symbol table features
    210210        struct guard_symtab {
    211                 guard_symtab( Pass<pass_t> & pass ): pass( pass ) { __pass::symtab::enter(pass, 0); }
    212                 ~guard_symtab()                                   { __pass::symtab::leave(pass, 0); }
     211                guard_symtab( Pass<pass_t> & pass ): pass( pass ) { __pass::symtab::enter(pass.pass, 0); }
     212                ~guard_symtab()                                   { __pass::symtab::leave(pass.pass, 0); }
    213213                Pass<pass_t> & pass;
    214214        };
     
    216216        /// Internal RAII guard for scope features
    217217        struct guard_scope {
    218                 guard_scope( Pass<pass_t> & pass ): pass( pass ) { __pass::scope::enter(pass, 0); }
    219                 ~guard_scope()                                   { __pass::scope::leave(pass, 0); }
     218                guard_scope( Pass<pass_t> & pass ): pass( pass ) { __pass::scope::enter(pass.pass, 0); }
     219                ~guard_scope()                                   { __pass::scope::leave(pass.pass, 0); }
    220220                Pass<pass_t> & pass;
    221221        };
Note: See TracChangeset for help on using the changeset viewer.