aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2024-08-11 21:31:28 -0700
committerDavid Rubin <daviru007@icloud.com>2024-08-25 15:17:23 -0700
commit889a324e774c77d77f75835352d1ae41381d3c31 (patch)
tree8fe483dd79816f0e54adfc41eae225e22805e755 /src/Compilation.zig
parent863f74dcd20e56876bdc9a86fccf4e2e07b1a60e (diff)
downloadzig-889a324e774c77d77f75835352d1ae41381d3c31.tar.gz
zig-889a324e774c77d77f75835352d1ae41381d3c31.zip
comp: remove an, unencouraged... pattern
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig3
1 files changed, 1 insertions, 2 deletions
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);