[Mlir-commits] [mlir] 706c130 - [Dialect] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Thu Mar 28 09:43:11 PDT 2024
Author: Kazu Hirata
Date: 2024-03-28T09:43:04-07:00
New Revision: 706c1302f99d79af21ddf22e23c53d33329f225a
URL: https://github.com/llvm/llvm-project/commit/706c1302f99d79af21ddf22e23c53d33329f225a
DIFF: https://github.com/llvm/llvm-project/commit/706c1302f99d79af21ddf22e23c53d33329f225a.diff
LOG: [Dialect] Fix a warning
This patch fixes:
mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp:158:17:
error: 'matchAndRewrite' overrides a member function but is not
marked 'override' [-Werror,-Wsuggest-override]
Added:
Modified:
mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp b/mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp
index 59aa4322217583..ff003e486d21c8 100644
--- a/mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp
+++ b/mlir/lib/Dialect/Tensor/Transforms/MergeConsecutiveInsertExtractSlicePatterns.cpp
@@ -156,7 +156,7 @@ struct DropRedundantRankExpansionOnInsertSliceOfExtractSlice final
using OpRewritePattern<tensor::InsertSliceOp>::OpRewritePattern;
LogicalResult matchAndRewrite(tensor::InsertSliceOp insertSliceOp,
- PatternRewriter &rewriter) const {
+ PatternRewriter &rewriter) const override {
auto extractSliceOp =
insertSliceOp.getSource().getDefiningOp<tensor::ExtractSliceOp>();
if (!extractSliceOp) {
More information about the Mlir-commits
mailing list