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:
parent
89812217b4
commit
55ea855e2c
3 changed files with 42 additions and 7 deletions
28
src/ir.cpp
28
src/ir.cpp
Loading…
Add table
Add a link
Reference in a new issue