diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h index 80713e17a56b9..a96125c16f11b 100644 --- a/llvm/include/llvm/Support/type_traits.h +++ b/llvm/include/llvm/Support/type_traits.h @@ -56,30 +56,6 @@ template struct const_pointer_or_const_ref { typename add_const_past_pointer::type, const T &>; }; -namespace detail { -template union trivial_helper { - T t; -}; - -} // 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; -}; - } // namespace llvm #endif // LLVM_SUPPORT_TYPE_TRAITS_H