Suppress warning for unused variable if assertions are disabled.
authorJohannes Reifferscheid <jreiffers@google.com>
Tue, 8 Nov 2022 10:12:09 +0000 (11:12 +0100)
committerJohannes Reifferscheid <jreiffers@google.com>
Tue, 8 Nov 2022 10:14:49 +0000 (11:14 +0100)
Reviewed By: bkramer

Differential Revision: https://reviews.llvm.org/D137621

mlir/lib/Rewrite/ByteCode.cpp

index 6b1dfb9..b4a57f3 100644 (file)
@@ -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.