| ... | @@ -10233,6 +10233,8 @@ static TypeTableEntry *ir_analyze_instruction_switch_br(IrAnalyze *ira, | ... | @@ -10233,6 +10233,8 @@ static TypeTableEntry *ir_analyze_instruction_switch_br(IrAnalyze *ira, |
| 10233 | | 10233 | |
| 10234 | for (size_t i = 0; i < case_count; i += 1) { | 10234 | for (size_t i = 0; i < case_count; i += 1) { |
| 10235 | IrInstructionSwitchBrCase *new_case = &cases[i]; | 10235 | IrInstructionSwitchBrCase *new_case = &cases[i]; |
| | 10236 | if (new_case->value == ira->codegen->invalid_instruction) |
| | 10237 | return ir_unreach_error(ira); |
| 10236 | new_case->block->ref_instruction = &switch_br_instruction->base; | 10238 | new_case->block->ref_instruction = &switch_br_instruction->base; |
| 10237 | } | 10239 | } |
| 10238 | | 10240 | |