From b0acbbee88f8ae706658f2a7635df4ce39e15e74 Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sat, 12 Apr 2025 21:49:40 -0400 Subject: [PATCH] [mlir][vector] Fix deprecation warning for `.isa`. NFC. (#135512) This was introduced in: https://github.com/llvm/llvm-project/pull/135371 --- mlir/lib/Dialect/Vector/IR/VectorOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp index fdbdc72c057a..4dadecd4995d 100644 --- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp +++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp @@ -5348,7 +5348,7 @@ public: using OpRewritePattern::OpRewritePattern; LogicalResult matchAndRewrite(GatherOp op, PatternRewriter &rewriter) const override { - if (!op.getBase().getType().isa()) + if (!isa(op.getBase().getType())) return rewriter.notifyMatchFailure(op, "base must be of memref type"); if (failed(isZeroBasedContiguousSeq(op.getIndexVec())))