mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-01 15:31:25 +03:00
8f3ccbbe36
The panic handler decl_val was previously given a `unneeded` source location, which was then added to the reference trace, resulting in a crash if the source location was used in the reference trace. This commit makes two trivial changes: * Don't add unneeded source locations to the ref table (panic in debug, silently ignore in release) * Pass a real source location when analyzing the panic handler