[Mlir-commits] [mlir] dfe26d5 - [mlir][Linalg] Fix SFINAE check to actually check the value.

Richard Smith llvmlistbot at llvm.org
Thu Jan 28 15:16:03 PST 2021


Author: Richard Smith
Date: 2021-01-28T15:15:46-08:00
New Revision: dfe26d5f44d217833a3fe3903acb61465c18913a

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

LOG: [mlir][Linalg] Fix SFINAE check to actually check the value.

No internal functionality change intended, but this fixes out-of-tree
uses.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h b/mlir/include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h
index 93d7d7076248..d73a0f61bbfa 100644
--- a/mlir/include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h
+++ b/mlir/include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h
@@ -33,7 +33,7 @@ struct Transformation {
 /// SFINAE: Enqueue helper for ConcreteOpType that have a `getOperationName`.
 template <template <typename> class PatternType, typename ConcreteOpType,
           typename OptionsType,
-          typename = std::enable_if<std::is_member_function_pointer<
+          typename = std::enable_if_t<std::is_member_function_pointer<
               decltype(&ConcreteOpType::getOperationName)>::value>>
 void sfinae_enqueue(OwningRewritePatternList &patterList, OptionsType options,
                     MLIRContext *context, StringRef opName,


        


More information about the Mlir-commits mailing list