# stage2: Resolve union layout before getting tag type in zirTagname · gitcafe/zig

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

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

Visibility: public

Requested revision: b52948444f16c082f0e29bb75b246370c4b11326

Requested commit: b52948444f16c082f0e29bb75b246370c4b11326

Commit: b52948444f16c082f0e29bb75b246370c4b11326

Tree: a11b00ef2970fc7d29ff684b004aabf9f74ceb7d

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
stage2: Resolve union layout before getting tag type in zirTagname

This bug only causes a failure on my machine when running
test/behavior/eval.zig directly. If running the full behavior test
suite, std.builtin.TypeInfo will have already resolved its layout,
causing the test to pass.

I'd love to add a test that can reliably reproduce this problem,
but I'm afraid I'm not sure how to reliably create a union with
un-resolved layout.

```

## Parents

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

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