[Mlir-commits] [mlir] [mlir][vector] Fix deprecation warning for `.isa`. NFC. (PR #135512)
Jakub Kuderski
llvmlistbot at llvm.org
Sat Apr 12 18:43:10 PDT 2025
https://github.com/kuhar created https://github.com/llvm/llvm-project/pull/135512
This was introduced in: https://github.com/llvm/llvm-project/pull/135371
>From 1fb559f5e21a20c678a9d5f3e1c698d8391bd32b Mon Sep 17 00:00:00 2001
From: Jakub Kuderski <jakub at nod-labs.com>
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<GatherOp> {
using OpRewritePattern::OpRewritePattern;
LogicalResult matchAndRewrite(GatherOp op,
PatternRewriter &rewriter) const override {
- if (!op.getBase().getType().isa<MemRefType>())
+ if (!isa<MemRefType>(op.getBase().getType()))
return rewriter.notifyMatchFailure(op, "base must be of memref type");
if (failed(isZeroBasedContiguousSeq(op.getIndexVec())))
More information about the Mlir-commits
mailing list