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