diff --git a/mlir/include/mlir/IR/PatternMatch.h b/mlir/include/mlir/IR/PatternMatch.h --- a/mlir/include/mlir/IR/PatternMatch.h +++ b/mlir/include/mlir/IR/PatternMatch.h @@ -1089,10 +1089,9 @@ template void assertArgs(PatternRewriter &rewriter, ArrayRef values, std::index_sequence) { - using FnTraitsT = llvm::function_traits; - // We only want to do verification in debug builds, same as with `assert`. #if LLVM_ENABLE_ABI_BREAKING_CHECKS + using FnTraitsT = llvm::function_traits; auto errorFn = [&](const Twine &msg) -> LogicalResult { llvm::report_fatal_error(msg); };