From 111ffcf5a0c7b707d0679aedd9546d55f1933bd4 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 22 Aug 2025 10:37:57 -0700 Subject: [PATCH] [CodeGen] Remove an obsolete macro test (NFC) 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. --- llvm/unittests/CodeGen/TypeTraitsTest.cpp | 3 --- 1 file changed, 3 deletions(-) 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, "trivially copyable"); static_assert(std::is_trivially_copyable_v, "trivially copyable"); @@ -24,5 +23,3 @@ static_assert(std::is_trivially_copyable_v, "trivially copyable"); static_assert(std::is_trivially_copyable_v, "trivially copyable"); static_assert(std::is_trivially_copyable_v, "trivially copyable"); -#endif -