Skip to content

Commit 0ec318e

Browse files
committed
Fix unused variable in "[mlir][PDL] Add support for native constraints with results (#82760)"
1 parent ea628e3 commit 0ec318e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Rewrite/ByteCode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ void ByteCodeExecutor::executeApplyConstraint(PatternRewriter &rewriter) {
14441444
const PDLRewriteFunction &constraintFn = constraintFunctions[fun_idx];
14451445
ByteCodeRewriteResultList results(numResults);
14461446
LogicalResult rewriteResult = constraintFn(rewriter, results, args);
1447-
ArrayRef<PDLValue> constraintResults = results.getResults();
1447+
[[maybe_unused]] ArrayRef<PDLValue> constraintResults = results.getResults();
14481448
LLVM_DEBUG({
14491449
if (succeeded(rewriteResult)) {
14501450
llvm::dbgs() << " * Constraint succeeded\n";

0 commit comments

Comments
 (0)