0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

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
This commit is contained in:
Andrew Kelley 2018-02-23 12:49:21 -05:00
commit 40dbcd09da
3 changed files with 13 additions and 13 deletions