diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-07-15 18:54:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-07-15 18:54:41 -0700 |
| commit | 60318a1e39897a0535cf7699c2e4ab6366d0687f (patch) | |
| tree | 1e8945279c48013c6f1717946945437322e62002 /src/Sema.zig | |
| parent | 888708ec8af9b60681ef14fb0a5c265f2a30b41f (diff) | |
| download | zig-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.zig | 2 |
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); |
