diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-05-26 04:10:51 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-06-13 12:53:18 +0100 |
| commit | 00609e7edbbc949b12e29a8d9911d988b78d7e03 (patch) | |
| tree | f5f76c6dc16054d3480398fd566e35099a74feb7 /lib/std/array_hash_map.zig | |
| parent | cebd80032a2dcc9f516f8183d1bfade5d1f12e45 (diff) | |
| download | zig-00609e7edbbc949b12e29a8d9911d988b78d7e03.tar.gz zig-00609e7edbbc949b12e29a8d9911d988b78d7e03.zip | |
Eliminate switch_capture and switch_capture_ref ZIR tags
These tags are unnecessary, as this information can be more efficiently
encoded within the switch_block instruction itself. We also use a neat
little trick to avoid needing a dummy instruction (like is used for
errdefer captures): since the switch_block itself cannot otherwise be
referenced within a prong, we can repurpose its index within prongs to
refer to the captured value.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions
