From 60318a1e39897a0535cf7699c2e4ab6366d0687f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 15 Jul 2024 18:54:41 -0700 Subject: 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. --- src/Sema.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Sema.zig') 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); -- cgit v1.2.3