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

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

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

Visibility: public

Requested revision: e96f65db7735ef80e19253ec25a1ce31751650f1

Requested commit: e96f65db7735ef80e19253ec25a1ce31751650f1

Commit: e96f65db7735ef80e19253ec25a1ce31751650f1

Tree: 3356db8e593d43749b7ed2278ea1687428146ff8

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

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

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