aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorDaniele Cocca <daniele.cocca@gmail.com>2021-11-13 02:44:16 +0000
committerAndrew Kelley <andrew@ziglang.org>2021-11-14 22:49:50 -0500
commit29f531bec9fd8cedc0e0da0981d1a71bb3348641 (patch)
tree4206ee60cdc1be5a58d4fd38d3a70567e050a174 /src/Compilation.zig
parentc61fbe77c8689709aac4adfa78b27ed7ea53ee5f (diff)
downloadzig-29f531bec9fd8cedc0e0da0981d1a71bb3348641.tar.gz
zig-29f531bec9fd8cedc0e0da0981d1a71bb3348641.zip
CBE: memset(..., 0xaa, ...) undefined values
This commit makes airStore() handle undefined values directly instead of delegating to renderValue(): the call to renderValue() happens too late, when "dest = " has already been written to the stream, at which point there's no sane way to initialize e.g. struct values by assignment. Instead, we make airStore() use memset(dest, 0xaa, sizeof(dest)), which should transparently handle all types. Also moves the newly-passing tests to the top of test/behavior.zig.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions