| ... | @@ -26203,7 +26203,7 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI | ... | @@ -26203,7 +26203,7 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI |
| 26203 | | 26203 | |
| 26204 | ZigValue *layout_value = get_const_field(ira, source_instr->source_node, payload, "layout", 0); | 26204 | ZigValue *layout_value = get_const_field(ira, source_instr->source_node, payload, "layout", 0); |
| 26205 | assert(layout_value->special == ConstValSpecialStatic); | 26205 | assert(layout_value->special == ConstValSpecialStatic); |
| 26206 | assert(layout_value->type->id == ZigTypeIdEnum); | 26206 | assert(layout_value->type == ir_type_info_get_type(ira, "ContainerLayout", nullptr)); |
| 26207 | ContainerLayout layout = (ContainerLayout)bigint_as_u32(&layout_value->data.x_enum_tag); | 26207 | ContainerLayout layout = (ContainerLayout)bigint_as_u32(&layout_value->data.x_enum_tag); |
| 26208 | | 26208 | |
| 26209 | ZigValue *fields_value = get_const_field(ira, source_instr->source_node, payload, "fields", 1); | 26209 | ZigValue *fields_value = get_const_field(ira, source_instr->source_node, payload, "fields", 1); |
| ... | @@ -26236,7 +26236,7 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI | ... | @@ -26236,7 +26236,7 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI |
| 26236 | entry->data.structure.layout = layout; | 26236 | entry->data.structure.layout = layout; |
| 26237 | entry->data.structure.special = is_tuple ? StructSpecialInferredTuple : StructSpecialNone; | 26237 | entry->data.structure.special = is_tuple ? StructSpecialInferredTuple : StructSpecialNone; |
| 26238 | entry->data.structure.created_by_at_type = true; | 26238 | entry->data.structure.created_by_at_type = true; |
| 26239 | entry->data.structure.decls_scope = create_decls_scope(ira->codegen, nullptr, nullptr, entry, entry, buf_create_from_str("a")); | 26239 | entry->data.structure.decls_scope = create_decls_scope(ira->codegen, nullptr, nullptr, entry, entry, &entry->name); |
| 26240 | | 26240 | |
| 26241 | assert(fields_ptr->data.x_ptr.special == ConstPtrSpecialBaseArray); | 26241 | assert(fields_ptr->data.x_ptr.special == ConstPtrSpecialBaseArray); |
| 26242 | assert(fields_ptr->data.x_ptr.data.base_array.elem_index == 0); | 26242 | assert(fields_ptr->data.x_ptr.data.base_array.elem_index == 0); |
| ... | @@ -26245,7 +26245,7 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI | ... | @@ -26245,7 +26245,7 @@ static ZigType *type_info_to_type(IrAnalyze *ira, IrInst *source_instr, ZigTypeI |
| 26245 | assert(fields_arr->data.x_array.special == ConstArraySpecialNone); | 26245 | assert(fields_arr->data.x_array.special == ConstArraySpecialNone); |
| 26246 | for (size_t i = 0; i < fields_len; i++) { | 26246 | for (size_t i = 0; i < fields_len; i++) { |
| 26247 | ZigValue *field_value = &fields_arr->data.x_array.data.s_none.elements[i]; | 26247 | ZigValue *field_value = &fields_arr->data.x_array.data.s_none.elements[i]; |
| 26248 | assert(field_value->type->id == ZigTypeIdStruct); | 26248 | assert(field_value->type == ir_type_info_get_type(ira, "StructField", nullptr)); |
| 26249 | TypeStructField *field = entry->data.structure.fields[i]; | 26249 | TypeStructField *field = entry->data.structure.fields[i]; |
| 26250 | field->name = buf_alloc(); | 26250 | field->name = buf_alloc(); |
| 26251 | if ((err = get_const_field_buf(ira, source_instr->source_node, field_value, "name", 0, field->name))) | 26251 | if ((err = get_const_field_buf(ira, source_instr->source_node, field_value, "name", 0, field->name))) |