diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-11 23:16:06 +0100 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-08-17 18:50:10 -0400 |
| commit | 895267c916f874593b0788b198b7de140b6b335b (patch) | |
| tree | cd1256cc5f48f6bdbc1283bf19bb0f224f45d293 /src/codegen/c.zig | |
| parent | 2b05e85107dd1c637ab40f8b145b232d18e8d6c6 (diff) | |
| download | zig-895267c916f874593b0788b198b7de140b6b335b.tar.gz zig-895267c916f874593b0788b198b7de140b6b335b.zip | |
frontend: incremental progress
This commit makes more progress towards incremental compilation, fixing
some crashes in the frontend. Notably, it fixes the regressions introduced
by #20964. It also cleans up the "outdated file root" mechanism, by
virtue of deleting it: we now detect outdated file roots just after
updating ZIR refs, and re-scan their namespaces.
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 03a1ea3746..7c35a178a0 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -2585,7 +2585,7 @@ pub fn genTypeDecl( const ty = Type.fromInterned(index); _ = try renderTypePrefix(.flush, global_ctype_pool, zcu, writer, global_ctype, .suffix, .{}); try writer.writeByte(';'); - const file_scope = ty.typeDeclInstAllowGeneratedTag(zcu).?.resolveFull(ip).file; + const file_scope = ty.typeDeclInstAllowGeneratedTag(zcu).?.resolveFile(ip); if (!zcu.fileByIndex(file_scope).mod.strip) try writer.print(" /* {} */", .{ ty.containerTypeName(ip).fmt(ip), }); |
