aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-02-04 12:00:34 +0000
committermlugg <mlugg@mlugg.co.uk>2025-02-04 16:20:29 +0000
commit0907432fffd2d9f5319022332a60fc88d3aacf4e (patch)
tree2f7972c6df3344599e01d99c72b82e75e1a990aa /src/Sema.zig
parenta8e53801d0bfe2132831b8286c4a237788aea8fa (diff)
downloadzig-0907432fffd2d9f5319022332a60fc88d3aacf4e.tar.gz
zig-0907432fffd2d9f5319022332a60fc88d3aacf4e.zip
compiler: a few renames
This is mainly in preparation for integrating ZonGen into the pipeline properly, although these names are better because `astGenFile` isn't *necessarily* running AstGen; it may determine that the current ZIR is up-to-date, or load cached ZIR.
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 19252600f0..97b9fbbaf9 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -6140,7 +6140,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
return sema.fail(&child_block, src, "C import failed: {s}", .{@errorName(err)});
const path_digest = zcu.filePathDigest(result.file_index);
- pt.astGenFile(result.file, path_digest) catch |err|
+ pt.updateFile(result.file, path_digest) catch |err|
return sema.fail(&child_block, src, "C import failed: {s}", .{@errorName(err)});
try sema.declareDependency(.{ .file = result.file_index });