Add a missing ~ (dtor became ctor) which caused crashes on a bunch of stuff.
authorChris Lattner <sabre@nondot.org>
Mon, 16 Jun 2008 23:06:51 +0000 (23:06 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Jun 2008 23:06:51 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52374 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index 27c71b16186f1b4cf34804e3a0d7fed64a59c0dc..e9b712f1959a6039dde48ad50f91a85ce15f628d 100644 (file)
@@ -83,9 +83,12 @@ namespace {
 class LinkerTypeMap : public AbstractTypeUser {
   typedef DenseMap<const Type*, PATypeHolder> TheMapTy;
   TheMapTy TheMap;
-public:
   
-  LinkerTypeMap() {
+  LinkerTypeMap(const LinkerTypeMap&); // DO NOT IMPLEMENT
+  void operator=(const LinkerTypeMap&); // DO NOT IMPLEMENT
+public:
+  LinkerTypeMap() {}
+  ~LinkerTypeMap() {
     for (DenseMap<const Type*, PATypeHolder>::iterator I = TheMap.begin(),
          E = TheMap.end(); I != E; ++I)
       I->first->removeAbstractTypeUser(this);