# stage2 llvm: correct handling of zero-bit types in unionFieldPtr · gitcafe/zig

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

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

Visibility: public

Requested revision: 7a8d9af4a94caeb74361c9462cd44a1e4356150b

Requested commit: 7a8d9af4a94caeb74361c9462cd44a1e4356150b

Commit: 7a8d9af4a94caeb74361c9462cd44a1e4356150b

Tree: c1496557509bcd1aa9581e6541bfecd1374160dc

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
stage2 llvm: correct handling of zero-bit types in unionFieldPtr

Pointers to zero-bit types are not zero-bit types so the function should
return something.
Closes #12716

```

## Parents

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

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