| ... | @@ -10562,8 +10562,9 @@ static IrInstruction *ir_analyze_enum_to_union(IrAnalyze *ira, IrInstruction *so | ... | @@ -10562,8 +10562,9 @@ static IrInstruction *ir_analyze_enum_to_union(IrAnalyze *ira, IrInstruction *so |
| 10562 | return ira->codegen->invalid_instruction; | 10562 | return ira->codegen->invalid_instruction; |
| 10563 | | 10563 | |
| 10564 | switch (type_has_one_possible_value(ira->codegen, union_field->type_entry)) { | 10564 | switch (type_has_one_possible_value(ira->codegen, union_field->type_entry)) { |
| 10565 | case OnePossibleValueNo: | 10565 | case OnePossibleValueInvalid: |
| 10566 | case OnePossibleValueInvalid: { | 10566 | return ira->codegen->invalid_instruction; |
| | 10567 | case OnePossibleValueNo: { |
| 10567 | AstNode *field_node = wanted_type->data.unionation.decl_node->data.container_decl.fields.at( | 10568 | AstNode *field_node = wanted_type->data.unionation.decl_node->data.container_decl.fields.at( |
| 10568 | union_field->enum_field->decl_index); | 10569 | union_field->enum_field->decl_index); |
| 10569 | ErrorMsg *msg = ir_add_error(ira, source_instr, | 10570 | ErrorMsg *msg = ir_add_error(ira, source_instr, |