diff options
| author | Daniele Cocca <daniele.cocca@gmail.com> | 2021-11-13 02:44:16 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-14 22:49:50 -0500 |
| commit | 29f531bec9fd8cedc0e0da0981d1a71bb3348641 (patch) | |
| tree | 4206ee60cdc1be5a58d4fd38d3a70567e050a174 /src/codegen/wasm.zig | |
| parent | c61fbe77c8689709aac4adfa78b27ed7ea53ee5f (diff) | |
| download | zig-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/codegen/wasm.zig')
0 files changed, 0 insertions, 0 deletions
