[Mlir-commits] [mlir] eee5c38 - Suppress warning for unused variable if assertions are disabled.
Johannes Reifferscheid
llvmlistbot at llvm.org
Tue Nov 8 02:14:54 PST 2022
Author: Johannes Reifferscheid
Date: 2022-11-08T11:14:49+01:00
New Revision: eee5c3859e78488246126a568a94f697c4f924ba
URL: https://github.com/llvm/llvm-project/commit/eee5c3859e78488246126a568a94f697c4f924ba
DIFF: https://github.com/llvm/llvm-project/commit/eee5c3859e78488246126a568a94f697c4f924ba.diff
LOG: Suppress warning for unused variable if assertions are disabled.
Reviewed By: bkramer
Differential Revision: https://reviews.llvm.org/D137621
Added:
Modified:
mlir/lib/Rewrite/ByteCode.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp
index 6b1dfb93a0c5..b4a57f353701 100644
--- a/mlir/lib/Rewrite/ByteCode.cpp
+++ b/mlir/lib/Rewrite/ByteCode.cpp
@@ -2276,6 +2276,7 @@ void PDLByteCode::match(Operation *op, PatternRewriter &rewriter,
uniquedData, matcherByteCode, state.currentPatternBenefits, patterns,
constraintFunctions, rewriteFunctions);
LogicalResult executeResult = executor.execute(rewriter, &matches);
+ (void)executeResult;
assert(succeeded(executeResult) && "unexpected matcher execution failure");
// Order the found matches by benefit.
More information about the Mlir-commits
mailing list