================
@@ -361,6 +414,16 @@ class DataLayout {
return PTy && isNonIntegralPointerType(PTy);
}
+ bool shouldAvoidPtrToInt(Type *Ty) const {
+ auto *PTy = dyn_cast<PointerType>(Ty);
+ return PTy && shouldAvoidPtrToInt(PTy->getPointerAddressSpace());
----------------
arichardson wrote:
Yeah I kept this check to allow replacing existing helper calls.
https://github.com/llvm/llvm-project/pull/105735
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits