summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/OptionalTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-01-18 16:23:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-01-18 16:23:40 +0000
commit0a2193054b13b5c4cc89cc101cedc0b3f0240d4f (patch)
treead52d80e4039eb9761f6d4bce089519ffaa5b35c /llvm/unittests/ADT/OptionalTest.cpp
parent712cd41fa0b0f45a7bc589d89af273341be8c529 (diff)
downloadbcm5719-llvm-0a2193054b13b5c4cc89cc101cedc0b3f0240d4f.tar.gz
bcm5719-llvm-0a2193054b13b5c4cc89cc101cedc0b3f0240d4f.zip
[ADT] Just give up on GCC, I can't fix this.
While the memmove workaround fixed it for GCC 6.3. GCC 4.8 and GCC 7.1 are still broken. I have no clue what's going on, just blacklist GCC for now. Needless to say this code is ubsan, asan and msan-clean. llvm-svn: 322862
Diffstat (limited to 'llvm/unittests/ADT/OptionalTest.cpp')
-rw-r--r--llvm/unittests/ADT/OptionalTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/OptionalTest.cpp b/llvm/unittests/ADT/OptionalTest.cpp
index a9a37bf820d..be49b85f486 100644
--- a/llvm/unittests/ADT/OptionalTest.cpp
+++ b/llvm/unittests/ADT/OptionalTest.cpp
@@ -518,8 +518,7 @@ TEST_F(OptionalTest, OperatorGreaterEqual) {
CheckRelation<GreaterEqual>(InequalityLhs, InequalityRhs, !IsLess);
}
-#if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) || \
- (defined(__GNUC__) && __GNUC__ >= 5)
+#if __has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)
static_assert(std::is_trivially_copyable<Optional<int>>::value,
"Should be trivially copyable");
static_assert(
OpenPOWER on IntegriCloud