diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-08-13 09:54:58 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-08-14 11:43:21 -0700 |
| commit | 8f3ccbbe367bea66d7f0f364a957870eb2cc95a0 (patch) | |
| tree | 33dad0b953904d39e75490b05f414bdbc09869bb /lib/std/Thread/Semaphore.zig | |
| parent | 1054e67f01e0f2eff1adf4982189ebba0a3696ab (diff) | |
| download | zig-8f3ccbbe367bea66d7f0f364a957870eb2cc95a0.tar.gz zig-8f3ccbbe367bea66d7f0f364a957870eb2cc95a0.zip | |
Sema: provide source location when analyzing panic handler
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
Diffstat (limited to 'lib/std/Thread/Semaphore.zig')
0 files changed, 0 insertions, 0 deletions
