diff --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp --- a/mlir/lib/Rewrite/ByteCode.cpp +++ b/mlir/lib/Rewrite/ByteCode.cpp @@ -2276,6 +2276,7 @@ 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.