fix memleak in ResolveTypeTo()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nuno Lopes 2008-10-15 11:10:21 +00:00
parent 3bd3a269c1
commit 0ecaf52796

View File

@ -708,6 +708,7 @@ static void ResolveTypeTo(std::string *Name, const Type *ToTy) {
CurModule.LateResolveTypes.find(D);
if (I != CurModule.LateResolveTypes.end()) {
((DerivedType*)I->second.get())->refineAbstractTypeTo(ToTy);
I->first.destroy();
CurModule.LateResolveTypes.erase(I);
}
D.destroy();