# ir: More changes to sentinel-terminated const arrays · gitcafe/zig

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

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

Visibility: public

Requested revision: e3c92d05328d7b40927bed66e7c2500a7853cdc8

Requested commit: e3c92d05328d7b40927bed66e7c2500a7853cdc8

Commit: e3c92d05328d7b40927bed66e7c2500a7853cdc8

Tree: 4e6a1b8e5ee17cf644288144bf66fe59f189c7b5

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
ir: More changes to sentinel-terminated const arrays

* Don't add an extra slot for the sentinel. Most of the code keeps using
  the constant value from the type descriptor, let's harmonize all the
  code dealing with sentinels.

* Properly write out sentinel values when reinterpreting pointers at
  comptime.

* Allow the reading of the 0th element in a `[0:S]T` type.

```

## Parents

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

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