From 889a324e774c77d77f75835352d1ae41381d3c31 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Sun, 11 Aug 2024 21:31:28 -0700 Subject: comp: remove an, unencouraged... pattern --- src/Compilation.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 183fe8b8f3..e43f2bd7b4 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3542,8 +3542,7 @@ fn performAllTheWorkInner( // in the `astgen_wait_group`. if (comp.job_queued_update_builtin_zig) b: { comp.job_queued_update_builtin_zig = false; - const zcu = comp.zcu orelse break :b; - _ = zcu; + if (comp.zcu == null) break :b; // TODO put all the modules in a flat array to make them easy to iterate. var seen: std.AutoArrayHashMapUnmanaged(*Package.Module, void) = .{}; defer seen.deinit(comp.gpa); -- cgit v1.2.3