| author | |
| committer | |
| log | 03b6d9f547417e1f56f5dfb5079f7aa2dee832a6 |
| tree | f84b969a4b6f474953fc156372798199bc2842b3 |
| parent | 9eb29e81f956080b358a79d3567204f656350620 |
1 files changed, 2 insertions(+), 0 deletions(-)
src/ir.cpp+2| ... | ... | @@ -10233,6 +10233,8 @@ static TypeTableEntry *ir_analyze_instruction_switch_br(IrAnalyze *ira, |
| 10233 | 10233 | |
| 10234 | 10234 | for (size_t i = 0; i < case_count; i += 1) { |
| 10235 | 10235 | IrInstructionSwitchBrCase *new_case = &cases[i]; |
| 10236 | if (new_case->value == ira->codegen->invalid_instruction) | |
| 10237 | return ir_unreach_error(ira); | |
| 10236 | 10238 | new_case->block->ref_instruction = &switch_br_instruction->base; |
| 10237 | 10239 | } |
| 10238 | 10240 |