diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-01-03 19:46:54 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-01-04 17:46:58 +0100 |
| commit | c519d9c80e5b207a84b9bd414727bd41cb4fadfa (patch) | |
| tree | fb72dfc603307552b309585246b1eb14e566bac6 /src/Compilation.zig | |
| parent | 5c228765f1094d30e64d13c0077c67b2867ecd6a (diff) | |
| download | zig-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
