[llvm] r351784 - Remove static_assert(value == std::is_trivially_copyable<T>::value)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 21 22:26:50 PST 2019


Author: vitalybuka
Date: Mon Jan 21 22:26:50 2019
New Revision: 351784

URL: http://llvm.org/viewvc/llvm-project?rev=351784&view=rev
Log:
Remove static_assert(value == std::is_trivially_copyable<T>::value)

This fails to compile with clang ang libstdc++ 4.6

Modified:
    llvm/trunk/include/llvm/Support/type_traits.h

Modified: llvm/trunk/include/llvm/Support/type_traits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/type_traits.h?rev=351784&r1=351783&r2=351784&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/type_traits.h (original)
+++ llvm/trunk/include/llvm/Support/type_traits.h Mon Jan 21 22:26:50 2019
@@ -162,10 +162,6 @@ class is_trivially_copyable {
       (has_deleted_move_constructor || has_trivial_move_constructor) &&
       (has_deleted_copy_assign || has_trivial_copy_assign) &&
       (has_deleted_copy_constructor || has_trivial_copy_constructor);
-
-#if (__has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5))
-  static_assert(value == std::is_trivially_copyable<T>::value, "inconsistent behavior between llvm:: and std:: implementation of is_trivially_copyable");
-#endif
 };
 
 




More information about the llvm-commits mailing list