From 814491f59921600b8a0137733b48d4b0f6b99d78 Mon Sep 17 00:00:00 2001 From: mlugg Date: Fri, 3 Jan 2025 23:47:57 +0000 Subject: [PATCH] Zcu: fix crash when incremental re-analysis of type annotation yields same result --- src/Zcu/PerThread.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index d304ee3533..4175223f14 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -909,7 +909,7 @@ fn analyzeNavVal(pt: Zcu.PerThread, nav_id: InternPool.Nav.Index) Zcu.CompileErr // Of course, we need to make sure we depend on it properly. try sema.declareDependency(.{ .nav_ty = nav_id }); try pt.ensureNavTypeUpToDate(nav_id); - break :ty .fromInterned(ip.getNav(nav_id).status.type_resolved.type); + break :ty .fromInterned(ip.getNav(nav_id).typeOf(ip)); } else null; const final_val: ?Value = if (zir_decl.value_body) |value_body| val: {