[Mlir-commits] [mlir] 0dce4cc - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Sun Oct 23 23:25:06 PDT 2022


Author: Kazu Hirata
Date: 2022-10-23T23:24:59-07:00
New Revision: 0dce4cc34e88cbf57d5105e2a43dd9a3f021d79b

URL: https://github.com/llvm/llvm-project/commit/0dce4cc34e88cbf57d5105e2a43dd9a3f021d79b
DIFF: https://github.com/llvm/llvm-project/commit/0dce4cc34e88cbf57d5105e2a43dd9a3f021d79b.diff

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/include/mlir/IR/PatternMatch.h:1092:63: 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 fa21d0c696f36..99c82ddc6b1f1 100644
--- a/mlir/include/mlir/IR/PatternMatch.h
+++ b/mlir/include/mlir/IR/PatternMatch.h
@@ -1102,6 +1102,7 @@ void assertArgs(PatternRewriter &rewriter, ArrayRef<PDLValue> values,
                         verifyAsArg(errorFn, values[I], I)) &&
           ...));
 #endif
+  (void)values;
 }
 
 //===----------------------------------------------------------------------===//


        


More information about the Mlir-commits mailing list