mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 17:05:16 +00:00
const_ptr_pointee_unchecked did not take into account that if the pointer is zero sized, then const_val->data.x_ptr.special would be ConstPtrSpecialInvalid. This commit fixes this by also checking that the child type of the pointer only have one possible value and just returns that value.