# Sema: fix false negative detecting comptime const · gitcafe/zig

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

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

Visibility: public

Requested revision: 9a1d5001d4bf1f28bd0f23e8b936d677e0e5aac8

Requested commit: 9a1d5001d4bf1f28bd0f23e8b936d677e0e5aac8

Commit: 9a1d5001d4bf1f28bd0f23e8b936d677e0e5aac8

Tree: 610bf3b91a5a02521b956fbb3ac7187f6f8449fc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix false negative detecting comptime const

The code for detecting when a local const initialization expression
ended up being comptime-known gave up when it encountered dbg_stmt
instructions, but such instructions are not supposed to matter.

```

## Parents

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

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