| ... | ... | @@ -729,11 +729,12 @@ static TypeTableEntry *resolve_enum_decl(Context *c, const EnumDecl *enum_decl) |
| 729 | 729 | } |
| 730 | 730 | } |
| 731 | 731 | |
| 732 | | TypeTableEntry *tag_type_entry = resolve_qual_type(c, enum_decl->getIntegerType(), enum_decl); |
| 732 | TypeTableEntry *tag_int_type = resolve_qual_type(c, enum_decl->getIntegerType(), enum_decl); |
| 733 | 733 | |
| 734 | 734 | if (pure_enum) { |
| 735 | 735 | TypeTableEntry *enum_type = get_partial_container_type(c->codegen, &c->import->decls_scope->base, |
| 736 | 736 | ContainerKindEnum, c->source_node, buf_ptr(full_type_name), ContainerLayoutExtern); |
| 737 | TypeTableEntry *tag_type_entry = create_enum_tag_type(c->codegen, enum_type, tag_int_type); |
| 737 | 738 | c->enum_type_table.put(bare_name, enum_type); |
| 738 | 739 | c->decl_table.put(enum_decl, enum_type); |
| 739 | 740 | |
| ... | ... | @@ -793,9 +794,9 @@ static TypeTableEntry *resolve_enum_decl(Context *c, const EnumDecl *enum_decl) |
| 793 | 794 | |
| 794 | 795 | return enum_type; |
| 795 | 796 | } else { |
| 796 | | // TODO after issue #305 is solved, make this be an enum with tag_type_entry |
| 797 | // TODO after issue #305 is solved, make this be an enum with tag_int_type |
| 797 | 798 | // as the integer type and set the custom enum values |
| 798 | | TypeTableEntry *enum_type = tag_type_entry; |
| 799 | TypeTableEntry *enum_type = tag_int_type; |
| 799 | 800 | c->enum_type_table.put(bare_name, enum_type); |
| 800 | 801 | c->decl_table.put(enum_decl, enum_type); |
| 801 | 802 | |