diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-26 20:59:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-26 20:59:36 -0700 |
| commit | 2687b8f7f4825c9018af6998e1de140e6185f9cd (patch) | |
| tree | 4bbd5f609153618e883ad4cce09c7a8c920a22b0 /lib/std/array_hash_map.zig | |
| parent | 32e89a98d82c0f4505a3f3d4cd72e7db2eadfbb9 (diff) | |
| download | zig-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 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions
