0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src/codegen
Andrew Kelley 87779cfd93 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.
History 2022-03-17 00:00:41 -07:00
..
llvm stage2 llvm: keep track of inlined functions 2022-03-16 10:53:41 +02:00
spirv spirv spec: do not align packed struct fields 2022-02-24 19:48:34 +02:00
c.zig CBE: better handling of sentineled slices/arrays 2022-03-16 19:58:45 -07:00
llvm.zig stage2: prevent UB in the LLVM backend 2022-03-17 00:00:41 -07:00
spirv.zig spirv: spir-v dedicated type system 2022-01-28 14:45:23 +01:00