mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
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:
parent
3bd3a269c1
commit
0ecaf52796
@ -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…
x
Reference in New Issue
Block a user