| ... | @@ -18177,12 +18177,6 @@ static IrInstGen *ir_analyze_instruction_merge_err_sets(IrAnalyze *ira, | ... | @@ -18177,12 +18177,6 @@ static IrInstGen *ir_analyze_instruction_merge_err_sets(IrAnalyze *ira, |
| 18177 | if (type_is_invalid(op2_type)) | 18177 | if (type_is_invalid(op2_type)) |
| 18178 | return ira->codegen->invalid_inst_gen; | 18178 | return ira->codegen->invalid_inst_gen; |
| 18179 | | 18179 | |
| 18180 | if (type_is_global_error_set(op1_type) || | | |
| 18181 | type_is_global_error_set(op2_type)) | | |
| 18182 | { | | |
| 18183 | return ir_const_type(ira, &instruction->base.base, ira->codegen->builtin_types.entry_global_error_set); | | |
| 18184 | } | | |
| 18185 | | | |
| 18186 | if (!resolve_inferred_error_set(ira->codegen, op1_type, instruction->op1->child->base.source_node)) { | 18180 | if (!resolve_inferred_error_set(ira->codegen, op1_type, instruction->op1->child->base.source_node)) { |
| 18187 | return ira->codegen->invalid_inst_gen; | 18181 | return ira->codegen->invalid_inst_gen; |
| 18188 | } | 18182 | } |
| ... | @@ -18191,6 +18185,12 @@ static IrInstGen *ir_analyze_instruction_merge_err_sets(IrAnalyze *ira, | ... | @@ -18191,6 +18185,12 @@ static IrInstGen *ir_analyze_instruction_merge_err_sets(IrAnalyze *ira, |
| 18191 | return ira->codegen->invalid_inst_gen; | 18185 | return ira->codegen->invalid_inst_gen; |
| 18192 | } | 18186 | } |
| 18193 | | 18187 | |
| | 18188 | if (type_is_global_error_set(op1_type) || |
| | 18189 | type_is_global_error_set(op2_type)) |
| | 18190 | { |
| | 18191 | return ir_const_type(ira, &instruction->base.base, ira->codegen->builtin_types.entry_global_error_set); |
| | 18192 | } |
| | 18193 | |
| 18194 | size_t errors_count = ira->codegen->errors_by_index.length; | 18194 | size_t errors_count = ira->codegen->errors_by_index.length; |
| 18195 | ErrorTableEntry **errors = heap::c_allocator.allocate<ErrorTableEntry *>(errors_count); | 18195 | ErrorTableEntry **errors = heap::c_allocator.allocate<ErrorTableEntry *>(errors_count); |
| 18196 | for (uint32_t i = 0, count = op1_type->data.error_set.err_count; i < count; i += 1) { | 18196 | for (uint32_t i = 0, count = op1_type->data.error_set.err_count; i < count; i += 1) { |