From f488df39d96f86fb32ba766fc05696aaefa4460a Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 22 Jan 2019 06:26:50 +0000 Subject: [PATCH] Remove static_assert(value == std::is_trivially_copyable::value) This fails to compile with clang ang libstdc++ 4.6 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351784 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/type_traits.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index b8cf12d03d2..a52bd408d27 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -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::value, "inconsistent behavior between llvm:: and std:: implementation of is_trivially_copyable"); -#endif }; -- 2.50.1