diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-27 16:12:06 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 19:49:07 -0700 |
| commit | 6509c492ad7908c515a0c00751e1348b26dda4e7 (patch) | |
| tree | 4424e28452be76d1ad081d6284e1f625955efbee /src/link.zig | |
| parent | 791e83c22396e029e0f2bc19b75fd86f8cd7851f (diff) | |
| download | zig-6509c492ad7908c515a0c00751e1348b26dda4e7.tar.gz zig-6509c492ad7908c515a0c00751e1348b26dda4e7.zip | |
move misc_errors from linker to Compilation
So that they can be referenced by getAllErrorsAlloc(). Fixes missing
compile errors.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/link.zig b/src/link.zig index 065779177e..e60571a473 100644 --- a/src/link.zig +++ b/src/link.zig @@ -67,9 +67,6 @@ pub const File = struct { allow_shlib_undefined: bool, stack_size: u64, - error_flags: ErrorFlags = .{}, - misc_errors: std.ArrayListUnmanaged(ErrorMsg) = .{}, - /// Prevents other processes from clobbering files in the output directory /// of this linking operation. lock: ?Cache.Lock = null, @@ -465,13 +462,8 @@ pub const File = struct { } pub fn destroy(base: *File) void { - const gpa = base.comp.gpa; base.releaseLock(); if (base.file) |f| f.close(); - { - for (base.misc_errors.items) |*item| item.deinit(gpa); - base.misc_errors.deinit(gpa); - } switch (base.tag) { .c => @fieldParentPtr(C, "base", base).deinit(), |
