Ignore:
Timestamp:
Feb 26, 2024, 3:49:23 AM (2 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
a4da45e
Parents:
c17dc80
Message:

Add EnumPosType? to type system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/GenType.cc

    rc17dc80 r0522ebe  
    4646        void postvisit( ast::UnionInstType const * type );
    4747        void postvisit( ast::EnumInstType const * type );
     48        void postvisit( ast::EnumPosType const * type );
    4849        void postvisit( ast::TypeInstType const * type );
    4950        void postvisit( ast::TupleType const * type );
     
    239240}
    240241
     242void GenType::postvisit( ast::EnumPosType const * type ) {
     243        postvisit( type->instance );
     244}
     245
    241246void GenType::postvisit( ast::TypeInstType const * type ) {
    242247        assertf( !options.genC, "TypeInstType should not reach code generation." );
Note: See TracChangeset for help on using the changeset viewer.