# Zir: remove unnecessary switch_capture_multi instructions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a377bf87ce6f021f958087bcf080425845a7bae6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a377bf87ce6f021f958087bcf080425845a7bae6

Requested commit: a377bf87ce6f021f958087bcf080425845a7bae6

Commit: a377bf87ce6f021f958087bcf080425845a7bae6

Tree: 78a56f67bc486ed2330ea278a6b97a0f83561b24

Author: mlugg

Committer: mlugg

## Message

```
Zir: remove unnecessary switch_capture_multi instructions

By indexing from the very first switch case rather than into scalar and
multi cases separately, the instructions for capturing in multi cases
become unnecessary, freeing up 2 ZIR tags.

```

## Parents

- [387f9568ad0dabd426d382efb45b9c52a4ccc5bb](https://git.cafe/gitcafe/zig/commit/387f9568ad0dabd426d382efb45b9c52a4ccc5bb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a377bf87ce6f021f958087bcf080425845a7bae6?format=markdown)
