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:
parent
4a32c61591
commit
0e2359f53d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user