Skip to content

Commit 814491f

Browse files
committed
Zcu: fix crash when incremental re-analysis of type annotation yields same result
1 parent b4da8ee commit 814491f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Zcu/PerThread.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ fn analyzeNavVal(pt: Zcu.PerThread, nav_id: InternPool.Nav.Index) Zcu.CompileErr
909909
// Of course, we need to make sure we depend on it properly.
910910
try sema.declareDependency(.{ .nav_ty = nav_id });
911911
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));
913913
} else null;
914914

915915
const final_val: ?Value = if (zir_decl.value_body) |value_body| val: {

0 commit comments

Comments
 (0)