diff options
-rw-r--r-- | llvm/lib/VMCore/Type.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 7b62530b51d..642fc1907ef 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -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) { |