# Fix lvalue dereference type checking · gitcafe/zig

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

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

Visibility: public

Requested revision: 91989e70ba68e3543acffef079d97c9416b5259c

Requested commit: 91989e70ba68e3543acffef079d97c9416b5259c

Commit: 91989e70ba68e3543acffef079d97c9416b5259c

Tree: 71323c9859706b377290c5bbca22c661afaf60dc

Author: Matthew McAllister

Committer: Matthew McAllister

## Message

```
Fix lvalue dereference type checking

Previously, if a dereference instruction was an lvalue, it would fail to
typecheck that the value being dereferenced was indeed a pointer.
Although a little clunky, this change obviates the need for redundant
type checks scattered about the analysis.

```

## Parents

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

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