Skip to content

Commit 7c57e21

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Transforms/Utils/DialectConversion.cpp:2761:9: error: unused variable 'impl' [-Werror,-Wunused-variable]
1 parent f9cac5f commit 7c57e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ LogicalResult OperationLegalizer::legalizePatternResult(
27582758
const SetVector<Operation *> &newOps,
27592759
const SetVector<Operation *> &modifiedOps,
27602760
const SetVector<Block *> &insertedBlocks) {
2761-
auto &impl = rewriter.getImpl();
2761+
[[maybe_unused]] auto &impl = rewriter.getImpl();
27622762
assert(impl.pendingRootUpdates.empty() && "dangling root updates");
27632763

27642764
#if MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS

0 commit comments

Comments
 (0)