diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-05-26 17:30:51 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-05-31 18:04:32 +0200 |
| commit | ffa89d3b8370377b56be594650c0ea73f225c926 (patch) | |
| tree | 611a23c6a865e1bb28b50c72b15e18d3e2b82aa1 /src/codegen.zig | |
| parent | 3c72b4d25eb14bbdc03503c368a750b1ca1b7c28 (diff) | |
| download | zig-ffa89d3b8370377b56be594650c0ea73f225c926.tar.gz zig-ffa89d3b8370377b56be594650c0ea73f225c926.zip | |
wasm: `UnwrapErrUnionPayloadPtr` ensure ptr ret
When the paylaod is zero-sized we must ensure a valid pointer
is still returned for the ptr variation of the instruction. This,
because it's valid to have a pointer to a zero-sized value.
In such a case, we simply return the operand.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
