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.
25012ab3d1Robin Voetter committed on 10/26/2021, 6:51:33 PM· committed by Andrew Kelleyparent17e46a3
2 files changedLine totals unavailable