diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-08 04:36:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-08 04:36:59 +0000 |
commit | bd6de0a2b3409c04d31886e4dfd705c61889b24a (patch) | |
tree | c424c70abc049b0b3639255619f863c5875aa6ab /lib/VMCore | |
parent | 00a7b52385a25ab8cd412ce4c0f0ce11176b6793 (diff) | |
download | external_llvm-bd6de0a2b3409c04d31886e4dfd705c61889b24a.zip external_llvm-bd6de0a2b3409c04d31886e4dfd705c61889b24a.tar.gz external_llvm-bd6de0a2b3409c04d31886e4dfd705c61889b24a.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Type.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<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) { |