[PATCH] D26196: Add support for non-zero null pointer for C and OpenCL

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 12 20:10:16 PST 2016


yaxunl added a comment.

>> It seems the casting from a pointer to different address space is not affected by this change. When a null pointer is casted to different address space, it is casted the same way as an ordinary pointer, e.g. by addrspacecast.
> 
> You mean, the code-generation for that knows about your special null pointer representation?  That is confusing.

Do you mean if a null pointer in one address space is casted to another address space, we should use the specific null pointer representation in the new address space, instead of a simple addrspacecast?


https://reviews.llvm.org/D26196





More information about the cfe-commits mailing list