mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
stage2: introduce store_safe AIR instruction
store: The value to store may be undefined, in which case the destination memory region has undefined bytes after this instruction is evaluated. In such case ignoring this instruction is legal lowering. store_safe: Same as `store`, except if the value to store is undefined, the memory region should be filled with 0xaa bytes, and any other safety metadata such as Valgrind integrations should be notified of this memory region being undefined.
This commit is contained in:
parent
d604553ee0
commit
5378fdffdc
13 changed files with 131 additions and 80 deletions
16
src/Air.zig
16
src/Air.zig
33
src/Sema.zig
33
src/Sema.zig
Loading…
Add table
Add a link
Reference in a new issue