[llvm] [InferAS] Infer the address space of inttoptr (PR #173244)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 22 01:49:55 PST 2026
================
@@ -180,6 +180,19 @@ class NVPTXTTIImpl final : public BasicTTIImplBase<NVPTXTTIImpl> {
}
}
+ APInt getAddrSpaceCastPreservedPtrMask(unsigned SrcAS,
+ unsigned DstAS) const override {
+ if (SrcAS != llvm::ADDRESS_SPACE_GENERIC)
+ return APInt::getZero(DL.getPointerSizeInBits());
----------------
arsenm wrote:
Don't use the default argument to getPointerSizeInBits
https://github.com/llvm/llvm-project/pull/173244
More information about the llvm-commits
mailing list