From 895267c916f874593b0788b198b7de140b6b335b Mon Sep 17 00:00:00 2001 From: mlugg Date: Sun, 11 Aug 2024 23:16:06 +0100 Subject: 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. --- src/Type.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Type.zig') diff --git a/src/Type.zig b/src/Type.zig index 2e3a493f18..c113e0734e 100644 --- a/src/Type.zig +++ b/src/Type.zig @@ -3437,7 +3437,7 @@ pub fn typeDeclSrcLine(ty: Type, zcu: *Zcu) ?u32 { }, else => return null, }; - const info = tracked.resolveFull(&zcu.intern_pool); + const info = tracked.resolveFull(&zcu.intern_pool) orelse return null; const file = zcu.fileByIndex(info.file); assert(file.zir_loaded); const zir = file.zir; -- cgit v1.2.3