aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-15 18:54:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-07-15 18:54:41 -0700
commit60318a1e39897a0535cf7699c2e4ab6366d0687f (patch)
tree1e8945279c48013c6f1717946945437322e62002 /src/Sema.zig
parent888708ec8af9b60681ef14fb0a5c265f2a30b41f (diff)
downloadzig-60318a1e39897a0535cf7699c2e4ab6366d0687f.tar.gz
zig-60318a1e39897a0535cf7699c2e4ab6366d0687f.zip
frontend: move updateZirRefs to be single-threaded
for simplicity's sake. This makes it O(M) instead of O(N*M) where N is tracked insts and M is number of changed source files.
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 671448b5b4..6b37005d68 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -6065,7 +6065,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
const path_digest = zcu.filePathDigest(result.file_index);
const root_decl = zcu.fileRootDecl(result.file_index);
- pt.astGenFile(result.file, result.file_index, path_digest, root_decl) catch |err|
+ pt.astGenFile(result.file, path_digest, root_decl) catch |err|
return sema.fail(&child_block, src, "C import failed: {s}", .{@errorName(err)});
try pt.ensureFileAnalyzed(result.file_index);