diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-05 18:34:05 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:42:28 -0700 |
| commit | 3e6dd0da7a9aae1e6e3d3e0d897a2b3a28bfc043 (patch) | |
| tree | 553b6f64983871e8483228d008aa540498c334c5 /src/InternPool.zig | |
| parent | ce3cffbd5a00a6ae44ec3f2c6550de1c52c293c4 (diff) | |
| download | zig-3e6dd0da7a9aae1e6e3d3e0d897a2b3a28bfc043.tar.gz zig-3e6dd0da7a9aae1e6e3d3e0d897a2b3a28bfc043.zip | |
stage2: add tmp_hack_arena for the InternPool transition
Temporarily used for some unfortunate allocations made by backends that
need to construct pointer types that can't be represented by the
InternPool. Once all types are migrated to be stored in the InternPool,
this can be removed.
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index c2d0406716..de69b19dbe 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -1040,6 +1040,7 @@ pub fn get(ip: *InternPool, gpa: Allocator, key: Key) Allocator.Error!Index { }); }, .ptr_type => |ptr_type| { + assert(ptr_type.elem_type != .none); // TODO introduce more pointer encodings ip.items.appendAssumeCapacity(.{ .tag = .type_pointer, |
