diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-02 04:08:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-02 04:08:41 +0000 |
commit | 0a3eef53d7eb99bb902c40549d4170a5048c16c0 (patch) | |
tree | 178095a36a69247047e7ac5d5e44a4417c3f5327 /unittests/ADT | |
parent | afad335cae8d1c811e2d4a9de843a36d36b4e8c5 (diff) | |
download | llvm-0a3eef53d7eb99bb902c40549d4170a5048c16c0.tar.gz llvm-0a3eef53d7eb99bb902c40549d4170a5048c16c0.tar.bz2 llvm-0a3eef53d7eb99bb902c40549d4170a5048c16c0.tar.xz |
[C++11] Switch all uses of the llvm_move macro to use std::move
directly, and remove the macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT')
-rw-r--r-- | unittests/ADT/SmallPtrSetTest.cpp | 2 | ||||
-rw-r--r-- | unittests/ADT/polymorphic_ptr_test.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ADT/SmallPtrSetTest.cpp b/unittests/ADT/SmallPtrSetTest.cpp index 675f337306..fdd1cbb600 100644 --- a/unittests/ADT/SmallPtrSetTest.cpp +++ b/unittests/ADT/SmallPtrSetTest.cpp @@ -143,7 +143,7 @@ TEST(SmallPtrSetTest, CopyAndMoveTest) { s3.insert(&buf[5]); s3.insert(&buf[6]); s3.insert(&buf[7]); - s1 = llvm_move(s3); + s1 = std::move(s3); EXPECT_EQ(8U, s1.size()); EXPECT_TRUE(s3.empty()); for (int i = 0; i < 8; ++i) diff --git a/unittests/ADT/polymorphic_ptr_test.cpp b/unittests/ADT/polymorphic_ptr_test.cpp index 8198d1f32c..12e57da7d4 100644 --- a/unittests/ADT/polymorphic_ptr_test.cpp +++ b/unittests/ADT/polymorphic_ptr_test.cpp @@ -57,7 +57,7 @@ TEST(polymorphic_ptr_test, Basic) { EXPECT_EQ(s, p.get()); EXPECT_EQ(42, p->x); - polymorphic_ptr<S> p2((llvm_move(p))); + polymorphic_ptr<S> p2((std::move(p))); EXPECT_FALSE((bool)p); EXPECT_TRUE(!p); EXPECT_TRUE((bool)p2); |