From b3e9b07a7d1cb543dcd8652a49a3613e6c9d993a Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 7 Apr 2021 18:51:53 +0200 Subject: [PATCH] Avoid testing for libc++ internal macros after D99834 As D99834 was meant specifically for FreeBSD, which still uses the older non-trivial std::pair copy constructors, test for `__FreeBSD__` instead of relying on a macro which is an internal detail of libc++. Noted by Louis Dionne. --- llvm/unittests/Support/TypeTraitsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/unittests/Support/TypeTraitsTest.cpp b/llvm/unittests/Support/TypeTraitsTest.cpp index cd78f090..bd21343 100644 --- a/llvm/unittests/Support/TypeTraitsTest.cpp +++ b/llvm/unittests/Support/TypeTraitsTest.cpp @@ -110,7 +110,7 @@ TEST(Triviality, ADT) { TrivialityTester, false, false>(); TrivialityTester, false, false>(); -#if !defined(_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR) +#if !defined(__FreeBSD__) TrivialityTester, true, true>(); #endif TrivialityTester, false, false>(); -- 2.7.4