# Sema: fix a few indexing bugs · gitcafe/zig

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

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

Visibility: public

Requested revision: bee19572c83c77995ca9a1206a6b08606f65eaa7

Requested commit: bee19572c83c77995ca9a1206a6b08606f65eaa7

Commit: bee19572c83c77995ca9a1206a6b08606f65eaa7

Tree: d5f98142584f04be404c35a338008d0f0528f8dc

Author: mlugg

Committer: Alex Rønne Petersen

## Message

```
Sema: fix a few indexing bugs

* Indexing zero-bit types should not produce AIR indexing instructions
* Getting a runtime-known element pointer from a many-pointer should
  check that the many-pointer is not comptime-only

Resolves: #23405

```

## Parents

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

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