# spirv: don't generate union tag type if it doesnt exist · gitcafe/zig

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

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

Visibility: public

Requested revision: d7ddaf64a2978d80814ac7f57e3db2d1c6a45c2e

Requested commit: d7ddaf64a2978d80814ac7f57e3db2d1c6a45c2e

Commit: d7ddaf64a2978d80814ac7f57e3db2d1c6a45c2e

Tree: f323c9076d4cef92c48d25e23ba71f1a3d4c3a1b

Author: Robin Voetter

Committer: Ali Chraghi

## Message

```
spirv: don't generate union tag type if it doesnt exist

Previously the tag type was generated even if it was nonexistant,
triggering an assertion that an integer type should never have
zero bits. Now its only generated when the tag type is actually emitted.

```

## Parents

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

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