aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-05-23 19:55:33 +0200
committerLuuk de Gram <luuk@degram.dev>2023-05-31 18:04:32 +0200
commit7cfc44d86ff56fd760eaf0781cc3ba0650267af9 (patch)
tree7bd69cbf461ec375c5ffbc1c79cb99d039fe5f2f /src/codegen.zig
parent49fddbf4c11d4ea493c1e5b6176052aeacc1ad10 (diff)
downloadzig-7cfc44d86ff56fd760eaf0781cc3ba0650267af9.tar.gz
zig-7cfc44d86ff56fd760eaf0781cc3ba0650267af9.zip
wasm: implement `struct_field_val` for packed unions
We currently have `isRef` return true for any type of union, including packed unions. This means we can simply load it from the data section to the exact type we want. In the future we can optimize it so it works similarly to packed structs below 64 bits which do not get stored in the data section and are not passed by ref.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions