aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-07-11 11:28:58 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-07-13 04:47:38 -0400
commit2ff49751aa932a6c0a0a09b8fd15e05ca6288c9b (patch)
tree063c28d109180173532a5318fae2428675242030 /src/Zcu.zig
parenta1053e8e1d961ba92ce83a8ef5470ac7f7e92e60 (diff)
downloadzig-2ff49751aa932a6c0a0a09b8fd15e05ca6288c9b.tar.gz
zig-2ff49751aa932a6c0a0a09b8fd15e05ca6288c9b.zip
Compilation: introduce work stages for better work distribution
Diffstat (limited to 'src/Zcu.zig')
-rw-r--r--src/Zcu.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig
index 9f0b917821..9ce9b70173 100644
--- a/src/Zcu.zig
+++ b/src/Zcu.zig
@@ -2983,11 +2983,11 @@ pub fn ensureFuncBodyAnalysisQueued(mod: *Module, func_index: InternPool.Index)
// Decl itself is safely analyzed, and body analysis is not yet queued
- try mod.comp.work_queue.writeItem(.{ .analyze_func = func_index });
+ try mod.comp.queueJob(.{ .analyze_func = func_index });
if (mod.emit_h != null) {
// TODO: we ideally only want to do this if the function's type changed
// since the last update
- try mod.comp.work_queue.writeItem(.{ .emit_h_decl = decl_index });
+ try mod.comp.queueJob(.{ .emit_h_decl = decl_index });
}
func.setAnalysisState(ip, .queued);
}