| ... | @@ -11938,7 +11938,6 @@ static IrInstruction *ir_analyze_enum_to_int(IrAnalyze *ira, IrInstruction *sour | ... | @@ -11938,7 +11938,6 @@ static IrInstruction *ir_analyze_enum_to_int(IrAnalyze *ira, IrInstruction *sour |
| 11938 | if (enum_type->data.enumeration.layout == ContainerLayoutAuto && | 11938 | if (enum_type->data.enumeration.layout == ContainerLayoutAuto && |
| 11939 | enum_type->data.enumeration.src_field_count == 1) | 11939 | enum_type->data.enumeration.src_field_count == 1) |
| 11940 | { | 11940 | { |
| 11941 | assert(tag_type == ira->codegen->builtin_types.entry_num_lit_int); | | |
| 11942 | IrInstruction *result = ir_const(ira, source_instr, tag_type); | 11941 | IrInstruction *result = ir_const(ira, source_instr, tag_type); |
| 11943 | init_const_bigint(&result->value, tag_type, | 11942 | init_const_bigint(&result->value, tag_type, |
| 11944 | &enum_type->data.enumeration.fields[0].value); | 11943 | &enum_type->data.enumeration.fields[0].value); |