diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-05-23 19:55:33 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-05-31 18:04:32 +0200 |
| commit | 7cfc44d86ff56fd760eaf0781cc3ba0650267af9 (patch) | |
| tree | 7bd69cbf461ec375c5ffbc1c79cb99d039fe5f2f /src/codegen.zig | |
| parent | 49fddbf4c11d4ea493c1e5b6176052aeacc1ad10 (diff) | |
| download | zig-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
