diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-16 23:54:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-17 00:00:41 -0700 |
| commit | 87779cfd93fdcb525f386d693a099e4188a3fc44 (patch) | |
| tree | d5dab5dfbd5a5d93645996fde1c9c1199e2adf0b /lib/std/debug.zig | |
| parent | 79d3780fbda475a50d6e0ca53d51c9e7c7690ab1 (diff) | |
| download | zig-87779cfd93fdcb525f386d693a099e4188a3fc44.tar.gz zig-87779cfd93fdcb525f386d693a099e4188a3fc44.zip | |
stage2: prevent UB in the LLVM backend
* Sema: fix `zirTypeInfo` allocating with the wrong arenas for some
stuff.
* LLVM: split `airDbgInline` into two functions, one for each AIR tag.
- remove the redundant copy to type_map_arena. This is the first
thing that lowerDebugType does so this hack was probably just
accidentally avoiding UB (which is still present prior to this
commit).
- don't store an inline fn inst into the di_map for the generic
decl.
- use a dummy function type for the debug info to avoid whatever UB
is happening.
- we are now ignoring the function type passed in with the
dbg_inline_begin and dbg_inline_end.
* behavior tests: prepare the vector tests to be enabled one at a time.
Mitigates #11199.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
