summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-08 04:36:59 +0000
committerChris Lattner <sabre@nondot.org>2009-04-08 04:36:59 +0000
commita72576e92bf483216bf3d0e5c1be84e7387434a7 (patch)
tree2d198b233fea9fe618c41e20d703b6fff740e179
parent8f28d01126b6c106f44553586911cf868f2acee3 (diff)
downloadbcm5719-llvm-a72576e92bf483216bf3d0e5c1be84e7387434a7.tar.gz
bcm5719-llvm-a72576e92bf483216bf3d0e5c1be84e7387434a7.zip
disable this code for now, re-breaking PR2975, but fixing
a testcase I'm about to attach to that pr. llvm-svn: 68592
-rw-r--r--llvm/lib/VMCore/Type.cpp6
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) {
OpenPOWER on IntegriCloud