Skip to content

Commit

Permalink
comp: remove an, unencouraged... pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Aug 25, 2024
1 parent 863f74d commit 889a324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 889a324

Please sign in to comment.