Skip to content

Conversation

kazutakahirata
Copy link
Contributor

These seem to be all dead. This patch removes them.

…gnable

These seem to be all dead.  This patch removes them.
@llvmbot
Copy link
Member

llvmbot commented Sep 11, 2025

@llvm/pr-subscribers-llvm-support

Author: Kazu Hirata (kazutakahirata)

Changes

These seem to be all dead. This patch removes them.


Full diff: https://github.com/llvm/llvm-project/pull/158007.diff

1 Files Affected:

  • (modified) llvm/include/llvm/Support/type_traits.h (-24)
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 <typename T> struct const_pointer_or_const_ref {
                          typename add_const_past_pointer<T>::type, const T &>;
 };
 
-namespace detail {
-template <class T> union trivial_helper {
-  T t;
-};
-
-} // namespace detail
-
-template <typename T> struct is_copy_assignable {
-  template <class F>
-  static auto get(F *)
-      -> decltype(std::declval<F &>() = std::declval<const F &>(),
-                  std::true_type{});
-  static std::false_type get(...);
-  static constexpr bool value = decltype(get((T *)nullptr))::value;
-};
-
-template <typename T> struct is_move_assignable {
-  template <class F>
-  static auto get(F *)
-      -> decltype(std::declval<F &>() = std::declval<F &&>(), 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

@kazutakahirata kazutakahirata merged commit 2c12308 into llvm:main Sep 11, 2025
11 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250910_Support_type_traits branch September 11, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants