[llvm-branch-commits] [clang] [CIR] Upstream `AddressSpace` conversions support (PR #161212)
David Rivera via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 30 13:21:17 PDT 2025
================
@@ -423,7 +423,10 @@ LogicalResult cir::CastOp::verify() {
auto resPtrTy = mlir::dyn_cast<cir::PointerType>(resType);
if (srcPtrTy && resPtrTy) {
- return success();
+ if (srcPtrTy.getAddrSpace() != resPtrTy.getAddrSpace()) {
----------------
RiverDave wrote:
Good point, I've addressed this on top of the function before the cast type is checked. Let me now if that's sufficient.
https://github.com/llvm/llvm-project/pull/161212
More information about the llvm-branch-commits
mailing list