# llvm: fix lowering pointer to final zero-width field of a comptime value · gitcafe/zig

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

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

Visibility: public

Requested revision: e0bc5f65b98d154b4318027d56f780b55605e33c

Requested commit: e0bc5f65b98d154b4318027d56f780b55605e33c

Commit: e0bc5f65b98d154b4318027d56f780b55605e33c

Tree: cc75a53ed2774ae1556f0f0d5a16c2b60b9eb32a

Author: Jacob Young

Committer: Jacob Young

## Message

```
llvm: fix lowering pointer to final zero-width field of a comptime value

 * Handle a `null` return from `llvmFieldIndex`.
 * Add a behavior test to test this code path.
 * Reword this test name, which incorrectly described how pointers to
   zero-bit fields behave, and instead describe the actual test.

```

## Parents

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

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