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.
ffa89d3b83Luuk de Gram committed on 5/31/2023, 4:04:32 PMparent3c72b4d
1 file changedLine totals unavailable