[Mlir-commits] [mlir] 046dffc - Fix -Wunused-variable in TestSimplifications.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Tue Jan 9 15:59:27 PST 2024
Author: Jie Fu
Date: 2024-01-10T07:59:19+08:00
New Revision: 046dffce237f193a50a46c3f5bd8a8ca2efc3c77
URL: https://github.com/llvm/llvm-project/commit/046dffce237f193a50a46c3f5bd8a8ca2efc3c77
DIFF: https://github.com/llvm/llvm-project/commit/046dffce237f193a50a46c3f5bd8a8ca2efc3c77.diff
LOG: Fix -Wunused-variable in TestSimplifications.cpp (NFC)
llvm-project/mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp:36:17:
error: unused variable 'status' [-Werror,-Wunused-variable]
LogicalResult status =
^
1 error generated.
Added:
Modified:
mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp b/mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp
index 12a5fd532c4c96..cd22530d51a75b 100644
--- a/mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp
+++ b/mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp
@@ -33,7 +33,7 @@ void TestMeshSimplificationsPass::runOnOperation() {
RewritePatternSet patterns(&getContext());
SymbolTableCollection symbolTableCollection;
mesh::populateSimplificationPatterns(patterns, symbolTableCollection);
- LogicalResult status =
+ [[maybe_unused]] LogicalResult status =
applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
assert(succeeded(status) && "Rewrite patters application did not converge.");
}
More information about the Mlir-commits
mailing list