Revert "Remove static_assert(value == std::is_trivially_copyable<T>::value)"

Upgraded the bot as workaround.

This reverts commit r351784.

llvm-svn: 351786
This commit is contained in:
Vitaly Buka 2019-01-22 07:22:45 +00:00
parent 1b9cd446f7
commit 3985ed08ca
1 changed files with 4 additions and 0 deletions

View File

@ -162,6 +162,10 @@ 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
};