From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: PJ Reiniger Date: Sun, 8 May 2022 16:42:09 -0400 Subject: [PATCH 17/36] Use std::is_trivially_copy_constructible --- llvm/include/llvm/Support/type_traits.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h index 3fd158def34d7256a736f8fb0b30dadea2177864..3171af93fa7ffe4707c03289270cf5951e3db7c5 100644 --- a/llvm/include/llvm/Support/type_traits.h +++ b/llvm/include/llvm/Support/type_traits.h @@ -76,22 +76,6 @@ union trivial_helper { } // end namespace detail -template -struct is_copy_assignable { - template - 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; -}; - -template -struct is_move_assignable { - template - 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; -}; - } // end namespace llvm #endif // LLVM_SUPPORT_TYPE_TRAITS_H