From 88330ce66ab31679e5705d79a38696d12346f32a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 10 Sep 2025 18:29:30 -0700 Subject: [PATCH] [Support] Remove trivial_helper, is_copy_assignable, and is_move_assignable These seem to be all dead. This patch removes them. --- llvm/include/llvm/Support/type_traits.h | 24 ------------------------ 1 file changed, 24 deletions(-) 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