comp: remove an, unencouraged... pattern

This commit is contained in:
David Rubin 2024-08-11 21:31:28 -07:00
parent 863f74dcd2
commit 889a324e77
No known key found for this signature in database
GPG Key ID: A4390FEB5F00C0A5

View File

@ -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);