aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-01 23:40:38 -0800
committerFangrui Song <i@maskray.me>2020-12-02 09:58:07 -0800
commit4d4bd40b578d77b8c5bc349ded405fb58c333c78 (patch)
tree3803ffeb0761c37df632479b4778c62bced6e7a6 /llvm/unittests/ADT/StringRefTest.cpp
parent92475f698ec20c153114da5ba88a2948c7cfae59 (diff)
downloadllvm-4d4bd40b578d77b8c5bc349ded405fb58c333c78.zip
llvm-4d4bd40b578d77b8c5bc349ded405fb58c333c78.tar.gz
llvm-4d4bd40b578d77b8c5bc349ded405fb58c333c78.tar.bz2
Use 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.
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringRefTest.cpp3
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