Skip to content

Commit 3e002b7

Browse files
committed
Use IsTriviallyCopyable instead of std::is_trivially_copyable to work around issues on Linux.
1 parent 3b2b431 commit 3e002b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unittests/Basic/PointerIntEnumTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "swift/Basic/PointerIntEnum.h"
2+
#include "swift/Basic/type_traits.h"
23
#include "llvm/ADT/ArrayRef.h"
34
#include "gtest/gtest.h"
45

@@ -26,7 +27,7 @@ enum class EnumTy : unsigned {
2627
using PointerIntEnumTy =
2728
PointerIntEnum<EnumTy, void *, 3, 4, llvm::PointerLikeTypeTraits<void *>>;
2829

29-
static_assert(std::is_trivially_copyable<PointerIntEnumTy>::value,
30+
static_assert(IsTriviallyCopyable<PointerIntEnumTy>::value,
3031
"PointerIntEnum type should be trivially copyable");
3132

3233
static constexpr uintptr_t InvalidStorage = uintptr_t(0) - 1;

0 commit comments

Comments
 (0)