aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-11-27 16:20:23 +0100
committerLuuk de Gram <luuk@degram.dev>2022-11-30 17:56:02 +0100
commita7ad1212cb1b127754c7e48ead8d80d66f0f6623 (patch)
treee86d27adc503658c983714140842e39e24ca2ac6 /src/codegen.zig
parenta314e86772c539e803dfd51c34de52675189b34a (diff)
downloadzig-a7ad1212cb1b127754c7e48ead8d80d66f0f6623.tar.gz
zig-a7ad1212cb1b127754c7e48ead8d80d66f0f6623.zip
wasm: airAggregateInit - Support packed structs
This allows the Wasm backend to construct an instance of a packed struct during runtime. We first allocate a local, and then shift+or each field's value into the result local. We then finally return this result local as value. The commit also fixes a type-issue in `airElemVal` where we used the element type instead of a pointer type to store the value's address into.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions