Skip to content

Commit 356be1a

Browse files
[CodeGen] Remove an obsolete macro test (NFC) (llvm#155069)
We can drop the macro test because we require C++17 and GCC 7.4 these days. Note that std::is_trivially_copyable_v is a C++17 feature.
1 parent 93942f5 commit 356be1a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/unittests/CodeGen/TypeTraitsTest.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616

1717
using namespace llvm;
1818

19-
#if __has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5)
2019
static_assert(std::is_trivially_copyable_v<PressureChange>,
2120
"trivially copyable");
2221
static_assert(std::is_trivially_copyable_v<SDep>, "trivially copyable");
2322
static_assert(std::is_trivially_copyable_v<SDValue>, "trivially copyable");
2423
static_assert(std::is_trivially_copyable_v<SlotIndex>, "trivially copyable");
2524
static_assert(std::is_trivially_copyable_v<IdentifyingPassPtr>,
2625
"trivially copyable");
27-
#endif
28-

0 commit comments

Comments
 (0)