From 1fb559f5e21a20c678a9d5f3e1c698d8391bd32b Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sat, 12 Apr 2025 21:41:34 -0400 Subject: [PATCH] [mlir][vector] Fix deprecation warning for `.isa`. NFC. 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 fdbdc72c057af..4dadecd4995d4 100644 --- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp +++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp @@ -5348,7 +5348,7 @@ class FoldContiguousGather final : public OpRewritePattern { 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())))