# better field access of types which have one possible value · gitcafe/zig

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

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

Visibility: public

Requested revision: cbce61a209897598cf093180ef6b5d71c9566d6a

Requested commit: cbce61a209897598cf093180ef6b5d71c9566d6a

Commit: cbce61a209897598cf093180ef6b5d71c9566d6a

Tree: 57af17f813a3a23008feb7e636e4613076d91b80

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
better field access of types which have one possible value

 * When you do field access of a type which only has one possible
   value, the result is comptime-known.
 * StorePtr instructions which operate on pointers to types which
   only have one possible value, the result is a comptime no-op.

closes #1554

```

## Parents

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

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