# ir: Fix comparison of ?T values · gitcafe/zig

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

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

Visibility: public

Requested revision: 6695fa4f326e807256b9afc6321e63a90b08e1ba

Requested commit: 6695fa4f326e807256b9afc6321e63a90b08e1ba

Commit: 6695fa4f326e807256b9afc6321e63a90b08e1ba

Tree: e5a6d7aa12dce2d9ac468e5c15431058f1578699

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
ir: Fix comparison of ?T values

The code assumed that every ?T had a pointer child type T, add some more
checks to make sure the type is effectively a pointer.

Closes #4789

```

## Parents

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

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