[Mlir-commits] [mlir] 62efe45 - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Sun Oct 30 00:18:14 PDT 2022
Author: Kazu Hirata
Date: 2022-10-30T00:18:08-07:00
New Revision: 62efe4567b697116610c152fa08c7083aa8df797
URL: https://github.com/llvm/llvm-project/commit/62efe4567b697116610c152fa08c7083aa8df797
DIFF: https://github.com/llvm/llvm-project/commit/62efe4567b697116610c152fa08c7083aa8df797.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/include/mlir/IR/PatternMatch.h:1209:72: warning: parameter
‘values’ set but not used [-Wunused-but-set-parameter]
Added:
Modified:
mlir/include/mlir/IR/PatternMatch.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/PatternMatch.h b/mlir/include/mlir/IR/PatternMatch.h
index 99c82ddc6b1f1..151fab8bdebbf 100644
--- a/mlir/include/mlir/IR/PatternMatch.h
+++ b/mlir/include/mlir/IR/PatternMatch.h
@@ -1212,6 +1212,7 @@ processArgsAndInvokeRewrite(PDLFnT &fn, PatternRewriter &rewriter,
rewriter, results,
fn(rewriter, (ProcessPDLValue<typename FnTraitsT::template arg_t<I + 1>>::
processAsArg(values[I]))...));
+ (void)values;
}
/// Build a rewrite function from the given function `RewriteFnT`. This
More information about the Mlir-commits
mailing list