diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-01-03 16:09:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-03 16:09:14 -0800 |
| commit | f6644255f595fb0bbfb2fa4276804ef7031330b1 (patch) | |
| tree | 2b43d96fec97caec177fb0851b63d5fa2729efa3 /src/Compilation.zig | |
| parent | 5cc131030c01e178453b12f235823124aa6a2d12 (diff) | |
| parent | 0151f3b76ad9dca6c73d44876c263d5e27d92ab3 (diff) | |
| download | zig-f6644255f595fb0bbfb2fa4276804ef7031330b1.tar.gz zig-f6644255f595fb0bbfb2fa4276804ef7031330b1.zip | |
Merge pull request #7598 from FireFox317/more-llvm-stage2
stage2: More improvements to self-hosted LLVM backend
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 9a06aee561..2ba76d0f5e 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1173,6 +1173,7 @@ pub fn destroy(self: *Compilation) void { const gpa = self.gpa; self.work_queue.deinit(); + self.c_object_work_queue.deinit(); { var it = self.crt_files.iterator(); @@ -1202,6 +1203,10 @@ pub fn destroy(self: *Compilation) void { crt_file.deinit(gpa); } + if (self.glibc_so_files) |*glibc_file| { + glibc_file.deinit(gpa); + } + for (self.c_object_table.items()) |entry| { entry.key.destroy(gpa); } |
