# llvm: correct calculation of index of zero-bit field · gitcafe/zig

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

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

Visibility: public

Requested revision: d2cc55109a64aaf004384b942e08e95829b9341f

Requested commit: d2cc55109a64aaf004384b942e08e95829b9341f

Commit: d2cc55109a64aaf004384b942e08e95829b9341f

Tree: a58057825963288dc93d51c6295b5879611d8493

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
llvm: correct calculation of index of zero-bit field

If the field comes before any non-zero-bit field then the index of
the next field should be returned.

Closes #13363

```

## Parents

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

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