# Prevent too eager constant-folding of switch expression · gitcafe/zig

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

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

Visibility: public

Requested revision: 6f7939a452e69b77581f5390b8075e9dfa81b03e

Requested commit: 6f7939a452e69b77581f5390b8075e9dfa81b03e

Commit: 6f7939a452e69b77581f5390b8075e9dfa81b03e

Tree: 4b671d6369b5508ca6ce718fad2df3a1fd23cf6e

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
Prevent too eager constant-folding of switch expression

A pointer was wrongly assumed to be comptime-available causing the
analysis pass to assume its initial value was constant.

Fixes #3481

```

## Parents

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

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