aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-26 20:59:36 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-26 20:59:36 -0700
commit2687b8f7f4825c9018af6998e1de140e6185f9cd (patch)
tree4bbd5f609153618e883ad4cce09c7a8c920a22b0 /src/codegen.zig
parent32e89a98d82c0f4505a3f3d4cd72e7db2eadfbb9 (diff)
downloadzig-2687b8f7f4825c9018af6998e1de140e6185f9cd.tar.gz
zig-2687b8f7f4825c9018af6998e1de140e6185f9cd.zip
stage2: implement `@unionInit`
The ZIR instruction `union_init_ptr` is renamed to `union_init`. I made it always use by-value semantics for now, not taking the time to invest in result location semantics, in case we decide to change the rules for unions. This way is much simpler. There is a new AIR instruction: union_init. This is for a comptime known tag, runtime-known field value. vector_init is renamed to aggregate_init, which solves a TODO comment.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions