# alternate implementation of previous commit · gitcafe/zig

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

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

Visibility: public

Requested revision: 1a5bd8888174ef2eb1881c1dd81d418b44625cc7

Requested commit: 1a5bd8888174ef2eb1881c1dd81d418b44625cc7

Commit: 1a5bd8888174ef2eb1881c1dd81d418b44625cc7

Tree: da3b78b294e6d21271ae9095dffece83450cecdd

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
alternate implementation of previous commit

This strategy adds another field to the SwitchBr instruction,
which is the result of the CheckSwitchProngs instruction. The
type of the result is void, and is unused, except that the SwitchBr
instruction will not perform analysis if the CheckSwitchProngs
instruction did not pass analysis. This allows the CheckSwitchProngs
instruction to do implicit casting for its type checking, while
preventing duplicate compile error messages.

```

## Parents

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

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