From 2a0c5337b60a10741b4cdd0a4cb5cbbc38517cde Mon Sep 17 00:00:00 2001 From: Serge Guelton Date: Tue, 22 Jan 2019 13:57:29 +0000 Subject: [PATCH] Slight fix for r351820 llvm-svn: 351821 --- include/llvm/Support/type_traits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 1ceeedd7856..c8c6a76a90f 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -124,7 +124,7 @@ struct is_trivially_move_constructible : std::true_type {}; template struct is_copy_assignable { template - static auto get(F*) -> decltype(std::declval() = std::declval(), std::true_type{}); + static auto get(F*) -> decltype(std::declval() = std::declval(), std::true_type{}); static std::false_type get(...); static constexpr bool value = decltype(get((T*)nullptr))::value; }; @@ -132,7 +132,7 @@ struct is_copy_assignable { template struct is_move_assignable { template - static auto get(F*) -> decltype(std::declval() = std::declval(), std::true_type{}); + static auto get(F*) -> decltype(std::declval() = std::declval(), std::true_type{}); static std::false_type get(...); static constexpr bool value = decltype(get((T*)nullptr))::value; };