forked from OSchip/llvm-project
disable this code for now, re-breaking PR2975, but fixing
a testcase I'm about to attach to that pr. llvm-svn: 68592
This commit is contained in:
parent
8f28d01126
commit
a72576e92b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue