# stage1: Don't skip steps when analyzing union types · gitcafe/zig

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

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

Visibility: public

Requested revision: 8a2ab60fca405d97d2d86456c92db1e5606622e4

Requested commit: 8a2ab60fca405d97d2d86456c92db1e5606622e4

Commit: 8a2ab60fca405d97d2d86456c92db1e5606622e4

Tree: 6abb6579ebe362777950dcfb649af93e4ba3f63c

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
stage1: Don't skip steps when analyzing union types

Don't cut any corner and properly run the type trough every single step
even though it has no fields (or, better, the sum of the size of all its
fields is zero).

Fix the logic to consider an explicit non-zero-sized tag enough to treat
the type as sized.

Closes #7451

```

## Parents

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

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