Changes in src/AST/Pass.impl.hpp [293dc1c:16ba4a6f]
- File:
-
- 1 edited
-
src/AST/Pass.impl.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r293dc1c r16ba4a6f 683 683 // Do not enter (or leave) a new scope if atFunctionTop. Remember to save the result. 684 684 auto guard1 = makeFuncGuard( [this, enterScope = !this->atFunctionTop]() { 685 if ( enterScope ) __pass::symtab::enter(core, 0); 685 if ( enterScope ) { 686 __pass::symtab::enter(core, 0); 687 __pass::scope::enter(core, 0); 688 } 686 689 }, [this, leaveScope = !this->atFunctionTop]() { 687 if ( leaveScope ) __pass::symtab::leave(core, 0); 690 if ( leaveScope ) { 691 __pass::symtab::leave(core, 0); 692 __pass::scope::leave(core, 0); 693 } 688 694 }); 689 695 ValueGuard< bool > guard2( atFunctionTop );
Note:
See TracChangeset
for help on using the changeset viewer.