Remove the ValueMap operator=, which was wrong (it did't correct the
authorDuncan Sands <baldrick@free.fr>
Mon, 9 Aug 2010 16:44:56 +0000 (16:44 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 9 Aug 2010 16:44:56 +0000 (16:44 +0000)
Map pointers of any contained ValueMapCallbackVH's) and unused.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110577 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ValueMap.h

index 181fe71e37040237a57aa5f1a38a589ff7b6241c..af041fe5216f8137e385fb1dcfece497ce5d0321 100644 (file)
@@ -83,6 +83,7 @@ class ValueMap {
   MapT Map;
   ExtraData Data;
   ValueMap(const ValueMap&); // DO NOT IMPLEMENT
+  ValueMap& operator=(const ValueMap&); // DO NOT IMPLEMENT
 public:
   typedef KeyT key_type;
   typedef ValueT mapped_type;
@@ -160,12 +161,6 @@ public:
     return Map[Wrap(Key)];
   }
 
-  ValueMap& operator=(const ValueMap& Other) {
-    Map = Other.Map;
-    Data = Other.Data;
-    return *this;
-  }
-
   /// isPointerIntoBucketsArray - Return true if the specified pointer points
   /// somewhere into the ValueMap's array of buckets (i.e. either to a key or
   /// value in the ValueMap).