[llvm] 356be1a - [CodeGen] Remove an obsolete macro test (NFC) (#155069)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 23 07:09:59 PDT 2025
Author: Kazu Hirata
Date: 2025-08-23T07:09:55-07:00
New Revision: 356be1a36eccc3cdeba35970b07f3052d1ed8076
URL: https://github.com/llvm/llvm-project/commit/356be1a36eccc3cdeba35970b07f3052d1ed8076
DIFF: https://github.com/llvm/llvm-project/commit/356be1a36eccc3cdeba35970b07f3052d1ed8076.diff
LOG: [CodeGen] Remove an obsolete macro test (NFC) (#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.
Added:
Modified:
llvm/unittests/CodeGen/TypeTraitsTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/CodeGen/TypeTraitsTest.cpp b/llvm/unittests/CodeGen/TypeTraitsTest.cpp
index 0ca4fa4e82c7c..dde86280cff6a 100644
--- a/llvm/unittests/CodeGen/TypeTraitsTest.cpp
+++ b/llvm/unittests/CodeGen/TypeTraitsTest.cpp
@@ -16,7 +16,6 @@
using namespace llvm;
-#if __has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5)
static_assert(std::is_trivially_copyable_v<PressureChange>,
"trivially copyable");
static_assert(std::is_trivially_copyable_v<SDep>, "trivially copyable");
@@ -24,5 +23,3 @@ static_assert(std::is_trivially_copyable_v<SDValue>, "trivially copyable");
static_assert(std::is_trivially_copyable_v<SlotIndex>, "trivially copyable");
static_assert(std::is_trivially_copyable_v<IdentifyingPassPtr>,
"trivially copyable");
-#endif
-
More information about the llvm-commits
mailing list