| ... | @@ -3281,7 +3281,8 @@ static Error resolve_union_zero_bits(CodeGen *g, ZigType *union_type) { | ... | @@ -3281,7 +3281,8 @@ static Error resolve_union_zero_bits(CodeGen *g, ZigType *union_type) { |
| 3281 | tag_type->data.enumeration.src_field_count = field_count; | 3281 | tag_type->data.enumeration.src_field_count = field_count; |
| 3282 | tag_type->data.enumeration.fields = heap::c_allocator.allocate<TypeEnumField>(field_count); | 3282 | tag_type->data.enumeration.fields = heap::c_allocator.allocate<TypeEnumField>(field_count); |
| 3283 | tag_type->data.enumeration.fields_by_name.init(field_count); | 3283 | tag_type->data.enumeration.fields_by_name.init(field_count); |
| 3284 | tag_type->data.enumeration.decls_scope = union_type->data.unionation.decls_scope; | 3284 | tag_type->data.enumeration.decls_scope = create_decls_scope( |
| | 3285 | g, nullptr, nullptr, tag_type, get_scope_import(scope), &tag_type->name); |
| 3285 | } else if (enum_type_node != nullptr) { | 3286 | } else if (enum_type_node != nullptr) { |
| 3286 | tag_type = analyze_type_expr(g, scope, enum_type_node); | 3287 | tag_type = analyze_type_expr(g, scope, enum_type_node); |
| 3287 | } else { | 3288 | } else { |