aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-16 10:47:42 -0700
committerGitHub <noreply@github.com>2024-07-16 10:47:42 -0700
commita58ceb3d554a9565a6cc0443f6384149ae2b3145 (patch)
treeaf66e289a0ae028be92389722979ed270b42ee42 /src/Sema.zig
parenta9d544575d5bd2a939b09b8f088bee5d8ff7b0d9 (diff)
parent7dbd2a6bb549afa6dc3c95df46f40bf144db23a6 (diff)
downloadzig-a58ceb3d554a9565a6cc0443f6384149ae2b3145.tar.gz
zig-a58ceb3d554a9565a6cc0443f6384149ae2b3145.zip
Merge pull request #20646 from ziglang/fix-updateZirRefs
frontend: fix updateZirRefs
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 d0b14434f3..63632e9f0f 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);