# fix type_is_codegen_pointer being used incorrectly · gitcafe/zig

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

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

Visibility: public

Requested revision: 40dbcd09da27a271c5d1b0990e712bd2b2bfe68d

Requested commit: 40dbcd09da27a271c5d1b0990e712bd2b2bfe68d

Commit: 40dbcd09da27a271c5d1b0990e712bd2b2bfe68d

Tree: cb4560cf3a096ccaf150aee41c022fceb063540d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix type_is_codegen_pointer being used incorrectly

The names of these functions should probably change, but at least
the semantics are correct now:
 * type_is_codegen_pointer - the type is either a fn, ptr, or promise
 * get_codegen_ptr_type -
   - ?&T and &T returns &T
   - ?promise and promise returns promise
   - ?fn()void and fn()void returns fn()void
   - otherwise returns nullptr

```

## Parents

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

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