# Revert "src/ir.cpp: check return value of \`const_ptr_pointee\` to protect against dereferencing null pointers;" · gitcafe/zig

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

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

Visibility: public

Requested revision: 6a3fad1d596a59846d072a005f77f6c59da09824

Requested commit: 6a3fad1d596a59846d072a005f77f6c59da09824

Commit: 6a3fad1d596a59846d072a005f77f6c59da09824

Tree: 6e67a5ac7d615580ac2c5114c2326cc23336574f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "src/ir.cpp: check return value of `const_ptr_pointee` to protect against dereferencing null pointers;"

This reverts commit 0839ed1f945dbbe3ad1f780a5334ad16ad12fd5e.

I realized too late there is a better fix. See PR #1419

```

## Parents

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

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