mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 08:57:43 +08:00
Suppress warning for unused variable if assertions are disabled.
Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D137621
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user