# stage2: restructure Sema.fieldVal and sema.fieldPtr · gitcafe/zig

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

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

Visibility: public

Requested revision: e5d6fe18b90cf2602e7e7712b4dd807b4e243356

Requested commit: e5d6fe18b90cf2602e7e7712b4dd807b4e243356

Commit: e5d6fe18b90cf2602e7e7712b4dd807b4e243356

Tree: b2f3392731b2a67d494526d79fc99ad2e3c7bc65

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
stage2: restructure Sema.fieldVal and sema.fieldPtr

Dereferencing single pointers is now handled outside of the main switch,
which allows deduplication of some cases. This also implements the
relevant operations for pointers to types and pointers to slices.

```

## Parents

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

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