aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-01-03 19:46:54 +0100
committerLuuk de Gram <luuk@degram.dev>2022-01-04 17:46:58 +0100
commitc519d9c80e5b207a84b9bd414727bd41cb4fadfa (patch)
treefb72dfc603307552b309585246b1eb14e566bac6 /src/Compilation.zig
parent5c228765f1094d30e64d13c0077c67b2867ecd6a (diff)
downloadzig-c519d9c80e5b207a84b9bd414727bd41cb4fadfa.tar.gz
zig-c519d9c80e5b207a84b9bd414727bd41cb4fadfa.zip
wasm: Implement (and fix) most optional instructions
Previously we were performing the wrapping and unwrapping operations incorrectly. We now correctly create the type and set its values. Besides this, we also set the null-byte to the incorrect value, which meant we were doing the opposite action of a is_null check. This is now fixed as well. While implementing this, I found a small bug in the wrapErrUnionPayload where we would load a pointer value and save that, rather than store the pointer with the error. This is now fixed as well, by copying the entire operand into the payload of the error union.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions