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/Compilation.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/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 9b2128a590..75af9362f6 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1316,6 +1316,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { .local_zir_cache = local_zir_cache, .emit_h = emit_h, .error_name_list = .{}, + .tmp_hack_arena = std.heap.ArenaAllocator.init(gpa), }; try module.init(); |
