[llvm] [DataLayout] Add isNullPointerAllZeroes (PR #165314)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 14:17:53 PDT 2025


https://github.com/nikic requested changes to this pull request.

I'm not sure what you are trying to do here. The null pointer (as in `ptr null`) is always all-zeroes, no matter the address space. What differs by address space is whether the all-zeroes pointer is assumed to be non-dereferenceable by default.

https://github.com/llvm/llvm-project/pull/165314


More information about the llvm-commits mailing list