[PATCH] D26196: Add support for non-zero null pointers
Tony Tye via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 8 10:57:09 PST 2016
tony-tye added inline comments.
================
Comment at: lib/CodeGen/CodeGenTypes.cpp:743
+ auto NullPtr = CGM.getNullPtr(LLPT, T);
+ return isa<llvm::ConstantPointerNull>(NullPtr);
+ }
----------------
Is this correct if the target does not represent a NULL pointer as the address with value 0? Or should this be asking the target if this null pointer is represented by an address value of 0?
https://reviews.llvm.org/D26196
More information about the cfe-commits
mailing list