From 1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 2 Dec 2020 22:02:48 -0800 Subject: Switch from llvm::is_trivially_copyable to std::is_trivially_copyable GCC<5 did not support std::is_trivially_copyable. Now LLVM builds require 5.1 we can migrate to std::is_trivially_copyable. The Optional.h change made MSVC choke (https://buildkite.com/llvm-project/premerge-checks/builds/18587#cd1bb616-ffdc-4581-9795-b42c284196de) so I leave it out for now. Differential Revision: https://reviews.llvm.org/D92514 --- llvm/unittests/ADT/StringRefTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/unittests/ADT/StringRefTest.cpp') diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp index fbf2d84..50e38c5 100644 --- a/llvm/unittests/ADT/StringRefTest.cpp +++ b/llvm/unittests/ADT/StringRefTest.cpp @@ -1087,6 +1087,7 @@ TEST(StringRefTest, GTestPrinter) { EXPECT_EQ(R"("foo")", ::testing::PrintToString(StringRef("foo"))); } -static_assert(is_trivially_copyable::value, "trivially copyable"); +static_assert(std::is_trivially_copyable::value, + "trivially copyable"); } // end anonymous namespace -- cgit v1.1