diff options
author | Duncan Sands <baldrick@free.fr> | 2010-08-08 12:57:48 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-08-08 12:57:48 +0000 |
commit | 3850f5cedad95e6062671d66b08e1a29e7d5e20f (patch) | |
tree | fec285bde72594bfe40e85b795412db23c1266b5 /unittests/ADT/ValueMapTest.cpp | |
parent | 21d3eeb02b459824adcbeb17f1ec9d1197eba2b9 (diff) |
Remove the ValueMap copy constructor. It's not used anywhere,
and removing it catches the mistake of passing a ValueMap by
copy rather than by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/ValueMapTest.cpp')
-rw-r--r-- | unittests/ADT/ValueMapTest.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/unittests/ADT/ValueMapTest.cpp b/unittests/ADT/ValueMapTest.cpp index ff7c3b55b7..152e8eaaf1 100644 --- a/unittests/ADT/ValueMapTest.cpp +++ b/unittests/ADT/ValueMapTest.cpp @@ -39,15 +39,6 @@ protected: typedef ::testing::Types<Value, Instruction, const Instruction> KeyTypes; TYPED_TEST_CASE(ValueMapTest, KeyTypes); -TYPED_TEST(ValueMapTest, CopyConstructor) { - ValueMap<TypeParam*, int> VM1; - VM1[this->AddV.get()] = 7; - ValueMap<TypeParam*, int> VM2(VM1); - this->AddV.reset(); - EXPECT_TRUE(VM1.empty()); - EXPECT_TRUE(VM2.empty()); -} - TYPED_TEST(ValueMapTest, Null) { ValueMap<TypeParam*, int> VM1; VM1[NULL] = 7; |