# Sema: rework \`@fieldParentPtr\` to accept a pointer type · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b2345e182090e2f4c57e7684ec9739f195fdb1d

Requested commit: 9b2345e182090e2f4c57e7684ec9739f195fdb1d

Commit: 9b2345e182090e2f4c57e7684ec9739f195fdb1d

Tree: 291857693683d092b886a59fb2fa37fefee981ec

Author: Jacob Young

Committer: Jacob Young

## Message

```
Sema: rework `@fieldParentPtr` to accept a pointer type

There is no way to know the expected parent pointer attributes (most
notably alignment) from the type of the field pointer, so provide them
in the first argument.

```

## Parents

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

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