# Sema: update core comptime detection logic to be InternPool aware · gitcafe/zig

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

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

Visibility: public

Requested revision: 2f05b1482a6f62658cc70c252d48a24a40404aa8

Requested commit: 2f05b1482a6f62658cc70c252d48a24a40404aa8

Commit: 2f05b1482a6f62658cc70c252d48a24a40404aa8

Tree: 17384a9a13b9cb993918ded8c83b8d7a123e6b47

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: update core comptime detection logic to be InternPool aware

 * Add some assertions to make sure instructions are not none. I tested
   all these with master branch as well and made sure the behavior tests
   still passed with the assertions intact (along with a handful of
   callsite updates).
 * Fix Sema.resolveMaybeUndefValAllowVariablesMaybeRuntime not noticing
   that interned values are comptime-known. This was causing all kinds
   of chaos.
 * Fix print_air writeType calling tag() without checking for ip_index

```

## Parents

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

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