summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2018-07-03 07:51:01 +0000
committerChandler Carruth <chandlerc@gmail.com>2018-07-03 07:51:01 +0000
commit9e0108d90cb11eb2a25e3019fa882d5032a709d5 (patch)
tree7853928213936f9b2cf982a8fbfd5ac1680af880 /llvm/unittests/Support
parentba8228affc66affd56b8c95b48cfc43d9763b199 (diff)
downloadbcm5719-llvm-9e0108d90cb11eb2a25e3019fa882d5032a709d5.tar.gz
bcm5719-llvm-9e0108d90cb11eb2a25e3019fa882d5032a709d5.zip
[Support] This sanity check in the test only works with certain versions
of libstdc++, not just certain versions of GCC. The original macros broke when using Clang + libstdc++4.9 sadly. Sadly, testing for versions of libstdc++ has been extremely problematic in the past, so I'm just narrowing this down to Windows and when using libc++ as that seems at least very unlikely to keep build bots broken. llvm-svn: 336174
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/TypeTraitsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/TypeTraitsTest.cpp b/llvm/unittests/Support/TypeTraitsTest.cpp
index 06ff9cc7b28..2f7340dd92f 100644
--- a/llvm/unittests/Support/TypeTraitsTest.cpp
+++ b/llvm/unittests/Support/TypeTraitsTest.cpp
@@ -26,7 +26,7 @@ void TrivialityTester() {
IsTriviallyMoveConstructible,
"Mismatch in expected trivial move construction!");
-#if __clang__ || _MSC_VER || __GNUC__ > 5
+#if defined(_LIBCPP_VERSION) || defined(_MSC_VER)
// On compilers with support for the standard traits, make sure they agree.
static_assert(std::is_trivially_copy_constructible<T>::value ==
IsTriviallyCopyConstructible,
OpenPOWER on IntegriCloud