================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits