# Fix llvmFieldIndex for zero sized fields · gitcafe/zig

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

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

Visibility: public

Requested revision: f48f687c051602bfc0e8098cb91b43d971541271

Requested commit: f48f687c051602bfc0e8098cb91b43d971541271

Commit: f48f687c051602bfc0e8098cb91b43d971541271

Tree: 96ec22f2a2528495d66957f425d1b950a79d3d42

Author: Jimmi Holst Christensen

Committer: Jimmi Holst Christensen

## Message

```
Fix llvmFieldIndex for zero sized fields

It is possible for Zig to emit field ptr instructions to fields whos
type is zero sized. In this case llvm should return a pointer which
points to the next none zero sized parameter.

```

## Parents

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

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