| ... | @@ -6166,16 +6166,10 @@ static IrInstruction *ir_gen_err_set_decl(IrBuilder *irb, Scope *parent_scope, A | ... | @@ -6166,16 +6166,10 @@ static IrInstruction *ir_gen_err_set_decl(IrBuilder *irb, Scope *parent_scope, A |
| 6166 | buf_init_from_buf(&err_set_type->name, type_name); | 6166 | buf_init_from_buf(&err_set_type->name, type_name); |
| 6167 | err_set_type->is_copyable = true; | 6167 | err_set_type->is_copyable = true; |
| 6168 | err_set_type->data.error_set.err_count = err_count; | 6168 | err_set_type->data.error_set.err_count = err_count; |
| 6169 | | 6169 | err_set_type->type_ref = irb->codegen->builtin_types.entry_global_error_set->type_ref; |
| 6170 | if (err_count == 0) { | 6170 | err_set_type->di_type = irb->codegen->builtin_types.entry_global_error_set->di_type; |
| 6171 | err_set_type->zero_bits = true; | 6171 | irb->codegen->error_di_types.append(&err_set_type->di_type); |
| 6172 | err_set_type->di_type = irb->codegen->builtin_types.entry_void->di_type; | 6172 | err_set_type->data.error_set.errors = allocate<ErrorTableEntry *>(err_count); |
| 6173 | } else { | | |
| 6174 | err_set_type->type_ref = irb->codegen->builtin_types.entry_global_error_set->type_ref; | | |
| 6175 | err_set_type->di_type = irb->codegen->builtin_types.entry_global_error_set->di_type; | | |
| 6176 | irb->codegen->error_di_types.append(&err_set_type->di_type); | | |
| 6177 | err_set_type->data.error_set.errors = allocate<ErrorTableEntry *>(err_count); | | |
| 6178 | } | | |
| 6179 | | 6173 | |
| 6180 | ErrorTableEntry **errors = allocate<ErrorTableEntry *>(irb->codegen->errors_by_index.length + err_count); | 6174 | ErrorTableEntry **errors = allocate<ErrorTableEntry *>(irb->codegen->errors_by_index.length + err_count); |
| 6181 | | 6175 | |