[mlir][vector] Fix deprecation warning for .isa. NFC. (#135512)

This was introduced in: https://github.com/llvm/llvm-project/pull/135371
This commit is contained in:
Jakub Kuderski 2025-04-12 21:49:40 -04:00 committed by GitHub
parent cfa322fa9a
commit b0acbbee88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5348,7 +5348,7 @@ public:
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())))