authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-03 23:47:57+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-04 05:44:29+00:00
log814491f59921600b8a0137733b48d4b0f6b99d78
tree41ad69f6ac7e8ac32fb3a4093e2f12273374d3e8
parentb4da8eef2a393543e9520c544364689ab482b080
signaturelock-open Commit is signed but in an unrecognized format.

Zcu: fix crash when incremental re-analysis of type annotation yields same result


1 files changed, 1 insertions(+), 1 deletions(-)

src/Zcu/PerThread.zig+1-1
...@@ -909,7 +909,7 @@ fn analyzeNavVal(pt: Zcu.PerThread, nav_id: InternPool.Nav.Index) Zcu.CompileErr...@@ -909,7 +909,7 @@ fn analyzeNavVal(pt: Zcu.PerThread, nav_id: InternPool.Nav.Index) Zcu.CompileErr
909 // Of course, we need to make sure we depend on it properly.909 // Of course, we need to make sure we depend on it properly.
910 try sema.declareDependency(.{ .nav_ty = nav_id });910 try sema.declareDependency(.{ .nav_ty = nav_id });
911 try pt.ensureNavTypeUpToDate(nav_id);911 try pt.ensureNavTypeUpToDate(nav_id);
912 break :ty .fromInterned(ip.getNav(nav_id).status.type_resolved.type);912 break :ty .fromInterned(ip.getNav(nav_id).typeOf(ip));
913 } else null;913 } else null;
914914
915 const final_val: ?Value = if (zir_decl.value_body) |value_body| val: {915 const final_val: ?Value = if (zir_decl.value_body) |value_body| val: {