1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

fix memleak in ResolveTypeTo()

llvm-svn: 57572
This commit is contained in:
Nuno Lopes 2008-10-15 11:10:21 +00:00
parent 4a32c61591
commit 0e2359f53d

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();