| ... | ... | @@ -15496,7 +15496,8 @@ static IrInstruction *ir_resolve_result(IrAnalyze *ira, IrInstruction *suspend_s |
| 15496 | 15496 | IrInstruction *unwrapped_err_ptr = ir_analyze_unwrap_error_payload(ira, suspend_source_instr, |
| 15497 | 15497 | result_loc, false, true); |
| 15498 | 15498 | ZigType *actual_payload_type = actual_elem_type->data.error_union.payload_type; |
| 15499 | | if (actual_payload_type->id == ZigTypeIdOptional && value_type->id != ZigTypeIdOptional) { |
| 15499 | if (actual_payload_type->id == ZigTypeIdOptional && value_type->id != ZigTypeIdOptional && |
| 15500 | value_type->id != ZigTypeIdNull) { |
| 15500 | 15501 | return ir_analyze_unwrap_optional_payload(ira, suspend_source_instr, unwrapped_err_ptr, false, true); |
| 15501 | 15502 | } else { |
| 15502 | 15503 | return unwrapped_err_ptr; |