diff options
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index b9b706e499..5a7500cafd 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -3019,6 +3019,7 @@ pub fn getIncompleteEnum( gpa: Allocator, enum_type: Key.IncompleteEnumType, ) Allocator.Error!InternPool.IncompleteEnumType { + try ip.items.ensureUnusedCapacity(gpa, 1); switch (enum_type.tag_mode) { .auto => return getIncompleteEnumAuto(ip, gpa, enum_type), .explicit => return getIncompleteEnumExplicit(ip, gpa, enum_type, .type_enum_explicit), @@ -3073,7 +3074,7 @@ pub fn getIncompleteEnumAuto( }; } -pub fn getIncompleteEnumExplicit( +fn getIncompleteEnumExplicit( ip: *InternPool, gpa: Allocator, enum_type: Key.IncompleteEnumType, |
