# stage1: fix constness in some corner cases · gitcafe/zig

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

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

Visibility: public

Requested revision: c0c9d11d8c509fdd1e60492abb1215d9860c3d39

Requested commit: c0c9d11d8c509fdd1e60492abb1215d9860c3d39

Commit: c0c9d11d8c509fdd1e60492abb1215d9860c3d39

Tree: 0fa83a1731000ea6d0c760817ccc5434652d713c

Author: Michael Dusan

Committer: Michael Dusan

## Message

```
stage1: fix constness in some corner cases

- for one-possible-value types, ir_analyze_struct_field_ptr()
  no longer hardcodes const/volatile

- when slicing arrays, ir_analyze_instruction_slice()
  no longer consults ConstValSpecialStatic

closes #5474

```

## Parents

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

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