disable this code for now, re-breaking PR2975, but fixing
[oota-llvm.git] / lib / VMCore / Type.cpp
index 7b62530b51d8880e4c1c09b7fe16b7196ef28e96..642fc1907ef7f6cc9c963710afebfb392a42f517 100644 (file)
@@ -670,12 +670,11 @@ protected:
   std::multimap<unsigned, PATypeHolder> TypesByHash;
 
 public:
-  ~TypeMapBase()
-  {
+  ~TypeMapBase() {
     // PATypeHolder won't destroy non-abstract types.
     // We can't destroy them by simply iterating, because
     // they may contain references to each-other.
-
+#if 0
     for (std::multimap<unsigned, PATypeHolder>::iterator I
          = TypesByHash.begin(), E = TypesByHash.end(); I != E; ++I) {
       Type *Ty = const_cast<Type*>(I->second.Ty);
@@ -689,6 +688,7 @@ public:
         operator delete(Ty);
       }
     }
+#endif
   }
 
   void RemoveFromTypesByHash(unsigned Hash, const Type *Ty) {