aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-12-02 13:48:05 -0800
committerReid Kleckner <rnk@google.com>2020-12-02 14:30:46 -0800
commit91e66bfd321ff3e932a9f9706b22fcf455a4a686 (patch)
tree475ed135601b32fa2432e3e9d07cd7f3d7a95a4f /llvm/unittests/ADT/StringRefTest.cpp
parent2304528bb54a224fbae26b5f7b2b4d5e2f810a43 (diff)
downloadllvm-91e66bfd321ff3e932a9f9706b22fcf455a4a686.zip
llvm-91e66bfd321ff3e932a9f9706b22fcf455a4a686.tar.gz
llvm-91e66bfd321ff3e932a9f9706b22fcf455a4a686.tar.bz2
Revert "Use std::is_trivially_copyable", breaks MSVC build
Revert "Delete llvm::is_trivially_copyable and CMake variable HAVE_STD_IS_TRIVIALLY_COPYABLE" This reverts commit 4d4bd40b578d77b8c5bc349ded405fb58c333c78. This reverts commit 557b00e0afb2dc1776f50948094ca8cc62d97be4.
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringRefTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp
index 50e38c5..fbf2d84 100644
--- a/llvm/unittests/ADT/StringRefTest.cpp
+++ b/llvm/unittests/ADT/StringRefTest.cpp
@@ -1087,7 +1087,6 @@ TEST(StringRefTest, GTestPrinter) {
EXPECT_EQ(R"("foo")", ::testing::PrintToString(StringRef("foo")));
}
-static_assert(std::is_trivially_copyable<StringRef>::value,
- "trivially copyable");
+static_assert(is_trivially_copyable<StringRef>::value, "trivially copyable");
} // end anonymous namespace