[Mlir-commits] [mlir] 07c009e - [mlir][Linalg] Fix invalid FailureOr construction from LogicalResult::success
Nicolas Vasilache
llvmlistbot at llvm.org
Thu Jan 6 15:43:33 PST 2022
Author: Nicolas Vasilache
Date: 2022-01-06T18:43:23-05:00
New Revision: 07c009ed5506c67b2e8ebc5a4f44d74d46b52ee9
URL: https://github.com/llvm/llvm-project/commit/07c009ed5506c67b2e8ebc5a4f44d74d46b52ee9
DIFF: https://github.com/llvm/llvm-project/commit/07c009ed5506c67b2e8ebc5a4f44d74d46b52ee9.diff
LOG: [mlir][Linalg] Fix invalid FailureOr construction from LogicalResult::success
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
index 22f95653701c..462f3c668f5c 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
@@ -634,7 +634,7 @@ mlir::linalg::GenericOpInterchangePattern::returningMatchAndRewrite(
// New filter if specified.
filter.replaceLinalgTransformationFilter(rewriter, genericOp);
- return success();
+ return transformedOp;
}
/// Linalg generalization pattern.
More information about the Mlir-commits
mailing list