| ... | @@ -3019,6 +3019,7 @@ pub fn getIncompleteEnum( | ... | @@ -3019,6 +3019,7 @@ pub fn getIncompleteEnum( |
| 3019 | gpa: Allocator, | 3019 | gpa: Allocator, |
| 3020 | enum_type: Key.IncompleteEnumType, | 3020 | enum_type: Key.IncompleteEnumType, |
| 3021 | ) Allocator.Error!InternPool.IncompleteEnumType { | 3021 | ) Allocator.Error!InternPool.IncompleteEnumType { |
| | 3022 | try ip.items.ensureUnusedCapacity(gpa, 1); |
| 3022 | switch (enum_type.tag_mode) { | 3023 | switch (enum_type.tag_mode) { |
| 3023 | .auto => return getIncompleteEnumAuto(ip, gpa, enum_type), | 3024 | .auto => return getIncompleteEnumAuto(ip, gpa, enum_type), |
| 3024 | .explicit => return getIncompleteEnumExplicit(ip, gpa, enum_type, .type_enum_explicit), | 3025 | .explicit => return getIncompleteEnumExplicit(ip, gpa, enum_type, .type_enum_explicit), |
| ... | @@ -3073,7 +3074,7 @@ pub fn getIncompleteEnumAuto( | ... | @@ -3073,7 +3074,7 @@ pub fn getIncompleteEnumAuto( |
| 3073 | }; | 3074 | }; |
| 3074 | } | 3075 | } |
| 3075 | | 3076 | |
| 3076 | pub fn getIncompleteEnumExplicit( | 3077 | fn getIncompleteEnumExplicit( |
| 3077 | ip: *InternPool, | 3078 | ip: *InternPool, |
| 3078 | gpa: Allocator, | 3079 | gpa: Allocator, |
| 3079 | enum_type: Key.IncompleteEnumType, | 3080 | enum_type: Key.IncompleteEnumType, |