| ... | @@ -24207,6 +24207,8 @@ static IrInstGen *ir_analyze_instruction_switch_var(IrAnalyze *ira, IrInstSrcSwi | ... | @@ -24207,6 +24207,8 @@ static IrInstGen *ir_analyze_instruction_switch_var(IrAnalyze *ira, IrInstSrcSwi |
| 24207 | ref_type->data.pointer.allow_zero); | 24207 | ref_type->data.pointer.allow_zero); |
| 24208 | return ir_analyze_ptr_cast(ira, &instruction->base.base, target_value_ptr, | 24208 | return ir_analyze_ptr_cast(ira, &instruction->base.base, target_value_ptr, |
| 24209 | &instruction->target_value_ptr->base, new_target_value_ptr_type, &instruction->base.base, false, false); | 24209 | &instruction->target_value_ptr->base, new_target_value_ptr_type, &instruction->base.base, false, false); |
| | 24210 | } else if (instruction->prongs_len > 1) { |
| | 24211 | return target_value_ptr; |
| 24210 | } else { | 24212 | } else { |
| 24211 | ir_add_error(ira, &instruction->base.base, | 24213 | ir_add_error(ira, &instruction->base.base, |
| 24212 | buf_sprintf("switch on type '%s' provides no expression parameter", buf_ptr(&target_type->name))); | 24214 | buf_sprintf("switch on type '%s' provides no expression parameter", buf_ptr(&target_type->name))); |