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

ir: Various fixes for comptime ptr handling

* Correctly fold ptrToInt on optional types
* Generate null as ConstPtrSpecialNull in intToPtr
* Correctly stop ptrToInt on ?*T where T is zero-sized

Closes #4535
This commit is contained in:
LemonBoy 2020-02-25 13:10:29 +01:00 • committed by Andrew Kelley
commit 55ea855e2c
3 changed files with 42 additions and 7 deletions