diff options
author | Fangrui Song <i@maskray.me> | 2020-12-02 22:02:48 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-12-02 22:02:48 -0800 |
commit | 1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b (patch) | |
tree | 442e8d4661a5a6e7f05bd1048d8aa6d5811808f8 /llvm/unittests/ADT/StringRefTest.cpp | |
parent | bd726d2796b1a5d2c936b5708bfb49a4b7fb89de (diff) | |
download | llvm-1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b.zip llvm-1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b.tar.gz llvm-1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b.tar.bz2 |
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
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringRefTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<StringRef>::value, "trivially copyable"); +static_assert(std::is_trivially_copyable<StringRef>::value, + "trivially copyable"); } // end anonymous namespace |