aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-05-22 19:06:38 +0200
committerLuuk de Gram <luuk@degram.dev>2023-05-31 18:04:32 +0200
commit49fddbf4c11d4ea493c1e5b6176052aeacc1ad10 (patch)
tree57d3e00ec5c6f37196d74d8bf6caef7bc8765408 /src/codegen.zig
parent00dedabc41322bc2b4978ddc39ee17b72193f194 (diff)
downloadzig-49fddbf4c11d4ea493c1e5b6176052aeacc1ad10.tar.gz
zig-49fddbf4c11d4ea493c1e5b6176052aeacc1ad10.zip
wasm: `union_init` correctly store the tag
Previously we would only store the payload, but not the actual tag that was set. This meant miscompilations where it would incorrectly return the tag value. This also adds a tiny optimization for payloads which are not `byRef` by directly storing them based on offset, rather than first calculating a pointer to an offset.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions