[llvm] [DataLayout] Add isNullPointerAllZeroes (PR #165314)
Robert Imschweiler via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 27 14:26:03 PDT 2025
================
@@ -398,6 +398,12 @@ class DataLayout {
PS.HasExternalState;
}
+ /// Returns if the null pointer for this address space has an all-zero bit
+ /// representation.
+ bool isNullPointerAllZeroes(unsigned AddrSpace) const {
+ return AddrSpace == 0;
+ }
----------------
ro-i wrote:
hm, race condition
https://github.com/llvm/llvm-project/pull/165314
More information about the llvm-commits
mailing list