diff options
| author | Robin Voetter <robin@voetter.nl> | 2021-10-26 17:33:35 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-26 14:51:33 -0400 |
| commit | 25012ab3d12ac7bcd4e53a90367afc8e97d91c36 (patch) | |
| tree | 23a034934cd1d6ec3676b0d0aca9c092ae7e1b6d /lib/std/array_list.zig | |
| parent | 17e46a3b97479b13a46a933206fca94d959fafe8 (diff) | |
| download | zig-25012ab3d12ac7bcd4e53a90367afc8e97d91c36.tar.gz zig-25012ab3d12ac7bcd4e53a90367afc8e97d91c36.zip | |
astgen: generate correct switch prong indices
Switch prong values are fetched by index in semantic analysis by prong
offset, but these were computed as capture offset. This means that a switch
where the first prong does not capture and the second does, the switch_capture
zir instruction would be assigned switch_prong 0 instead of 1.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions
