Skip to content

Commit 046dffc

Browse files
committed
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.
1 parent feb49bb commit 046dffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/test/lib/Dialect/Mesh/TestSimplifications.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void TestMeshSimplificationsPass::runOnOperation() {
3333
RewritePatternSet patterns(&getContext());
3434
SymbolTableCollection symbolTableCollection;
3535
mesh::populateSimplificationPatterns(patterns, symbolTableCollection);
36-
LogicalResult status =
36+
[[maybe_unused]] LogicalResult status =
3737
applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
3838
assert(succeeded(status) && "Rewrite patters application did not converge.");
3939
}

0 commit comments

Comments
 (0)