From bd6de0a2b3409c04d31886e4dfd705c61889b24a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 8 Apr 2009 04:36:59 +0000 Subject: disable this code for now, re-breaking PR2975, but fixing a testcase I'm about to attach to that pr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68592 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/VMCore') diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 7b62530..642fc19 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -670,12 +670,11 @@ protected: std::multimap 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::iterator I = TypesByHash.begin(), E = TypesByHash.end(); I != E; ++I) { Type *Ty = const_cast(I->second.Ty); @@ -689,6 +688,7 @@ public: operator delete(Ty); } } +#endif } void RemoveFromTypesByHash(unsigned Hash, const Type *Ty) { -- cgit v1.1