# Sema: ensure comptime reference to function points to original decl · gitcafe/zig

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

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

Visibility: public

Requested revision: fe6249348f615c975a2db53bb0c93f83bd2a281b

Requested commit: fe6249348f615c975a2db53bb0c93f83bd2a281b

Commit: fe6249348f615c975a2db53bb0c93f83bd2a281b

Tree: e059a560361900c2d6e0d226be20cebc9ea0c74e

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
Sema: ensure comptime reference to function points to original decl

This prevents sema from creating new decls for the functions and
passing them to the backends as non-function decls.

Closes #12501

```

## Parents

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

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