From 8ef82e83551cfca60698eb82dc180118e64b8fde Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 12 Aug 2025 22:36:58 +0100 Subject: what if we kissed by the extern source bit --- src/Zcu/PerThread.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Zcu/PerThread.zig') diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 6d2da7afa4..3c2bb27dab 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -1249,6 +1249,7 @@ fn analyzeNavVal(pt: Zcu.PerThread, nav_id: InternPool.Nav.Index) Zcu.CompileErr .@"addrspace" = modifiers.@"addrspace", .zir_index = old_nav.analysis.?.zir_index, // `declaration` instruction .owner_nav = undefined, // ignored by `getExtern` + .source = .syntax, })); }, }; @@ -3435,6 +3436,7 @@ pub fn getCoerced(pt: Zcu.PerThread, val: Value, new_ty: Type) Allocator.Error!V .@"addrspace" = e.@"addrspace", .zir_index = e.zir_index, .owner_nav = undefined, // ignored by `getExtern`. + .source = e.source, }); return Value.fromInterned(coerced); }, -- cgit v1.2.3