diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-16 10:47:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 10:47:42 -0700 |
| commit | a58ceb3d554a9565a6cc0443f6384149ae2b3145 (patch) | |
| tree | af66e289a0ae028be92389722979ed270b42ee42 /src/Compilation.zig | |
| parent | a9d544575d5bd2a939b09b8f088bee5d8ff7b0d9 (diff) | |
| parent | 7dbd2a6bb549afa6dc3c95df46f40bf144db23a6 (diff) | |
| download | zig-a58ceb3d554a9565a6cc0443f6384149ae2b3145.tar.gz zig-a58ceb3d554a9565a6cc0443f6384149ae2b3145.zip | |
Merge pull request #20646 from ziglang/fix-updateZirRefs
frontend: fix updateZirRefs
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 76dc42fc64..8243bc3620 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3595,7 +3595,12 @@ fn performAllTheWorkInner( } if (comp.module) |zcu| { - const pt: Zcu.PerThread = .{ .zcu = comp.module.?, .tid = .main }; + const pt: Zcu.PerThread = .{ .zcu = zcu, .tid = .main }; + if (comp.incremental) { + const update_zir_refs_node = main_progress_node.start("Update ZIR References", 0); + defer update_zir_refs_node.end(); + try pt.updateZirRefs(); + } try reportMultiModuleErrors(pt); try zcu.flushRetryableFailures(); zcu.sema_prog_node = main_progress_node.start("Semantic Analysis", 0); @@ -4306,7 +4311,7 @@ fn workerAstGenFile( defer child_prog_node.end(); const pt: Zcu.PerThread = .{ .zcu = comp.module.?, .tid = @enumFromInt(tid) }; - pt.astGenFile(file, file_index, path_digest, root_decl) catch |err| switch (err) { + pt.astGenFile(file, path_digest, root_decl) catch |err| switch (err) { error.AnalysisFail => return, else => { file.status = .retryable_failure; |
