# Sema: mark pointers to inline functions as comptime-only · gitcafe/zig

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

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

Visibility: public

Requested revision: 6df78c3bc17e5922792fcef0025043c358daa52f

Requested commit: 6df78c3bc17e5922792fcef0025043c358daa52f

Commit: 6df78c3bc17e5922792fcef0025043c358daa52f

Tree: 08cef0a28f498b9bd946714d4bc91ddf284fa166

Author: mlugg

Committer: Andrew Kelley

## Message

```
Sema: mark pointers to inline functions as comptime-only

This is supposed to be the case, similar to how pointers to generic
functions are comptime-only (several pieces of logic already assumed
this). These types being considered runtime was causing `dbg_var_val`
AIR instructions to be wrongly emitted for such values, causing codegen
backends to create a runtime reference to the inline function, which (at
least on the LLVM backend) triggers an error.

Resolves: #38

```

## Parents

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

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