[Mlir-commits] [mlir] 145574f - NFC: Eliminate warning for unused type alias FnTraitsT in release builds.

Stella Laurenzo llvmlistbot at llvm.org
Thu Apr 7 18:13:38 PDT 2022


Author: Stella Laurenzo
Date: 2022-04-07T18:11:11-07:00
New Revision: 145574fa2d2bb88ec00f35ca296124730b1a9e9b

URL: https://github.com/llvm/llvm-project/commit/145574fa2d2bb88ec00f35ca296124730b1a9e9b
DIFF: https://github.com/llvm/llvm-project/commit/145574fa2d2bb88ec00f35ca296124730b1a9e9b.diff

LOG: NFC: Eliminate warning for unused type alias FnTraitsT in release builds.

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

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 478fa2ae97b1c..aa67709605cd7 100644
--- a/mlir/include/mlir/IR/PatternMatch.h
+++ b/mlir/include/mlir/IR/PatternMatch.h
@@ -1089,10 +1089,9 @@ LogicalResult verifyAsArgs(PatternRewriter &rewriter, ArrayRef<PDLValue> values,
 template <typename PDLFnT, std::size_t... I>
 void assertArgs(PatternRewriter &rewriter, ArrayRef<PDLValue> values,
                 std::index_sequence<I...>) {
-  using FnTraitsT = llvm::function_traits<PDLFnT>;
-
   // We only want to do verification in debug builds, same as with `assert`.
 #if LLVM_ENABLE_ABI_BREAKING_CHECKS
+  using FnTraitsT = llvm::function_traits<PDLFnT>;
   auto errorFn = [&](const Twine &msg) -> LogicalResult {
     llvm::report_fatal_error(msg);
   };


        


More information about the Mlir-commits mailing list