# llvm: fix jump table gen for labeled switch with single \`else\` prong · gitcafe/zig

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

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

Visibility: public

Requested revision: 42dea36ce91db4d79711a8005ae9124bfb1364b3

Requested commit: 42dea36ce91db4d79711a8005ae9124bfb1364b3

Commit: 42dea36ce91db4d79711a8005ae9124bfb1364b3

Tree: 27c1ecb5ab0a23c0e9978e5588b84ec1cea412f4

Author: Justus Klausecker

Committer: Matthew Lugg

## Message

```
llvm: fix jump table gen for labeled switch with single `else` prong

Avoids a null unwrap if there are no cases with explicit values present
while trying to construct a jump table for a labeled switch statement.

```

## Parents

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

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