Changeset f135b50 for src/Common
- Timestamp:
- Feb 28, 2022, 3:41:44 AM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 786c438
- Parents:
- a8ef59e
- Location:
- src/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Eval.cc
ra8ef59e rf135b50 112 112 } 113 113 114 void postvisit( const ast::VariableExpr * expr ) { 114 void postvisit( const ast::VariableExpr * expr ) { // No hit 115 115 if ( const ast::EnumInstType * inst = dynamic_cast<const ast::EnumInstType *>(expr->result.get()) ) { 116 116 if ( const ast::EnumDecl * decl = inst->base ) { -
src/Common/PassVisitor.impl.h
ra8ef59e rf135b50 754 754 755 755 // unlike structs, traits, and unions, enums inject their members into the global scope 756 if ( node->base ) maybeAccept_impl( node->base, *this ); // Need this? Maybe not? 756 757 maybeAccept_impl( node->parameters, *this ); 757 758 maybeAccept_impl( node->members , *this );
Note: See TracChangeset
for help on using the changeset viewer.