mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Fixing memory leak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23ac4f1856
commit
d1074b0e7f
@ -882,7 +882,9 @@ bool WinEHPrepare::prepareExceptionHandlers(
|
|||||||
Function *Handler = cast<Function>(CA->getHandlerBlockOrFunc());
|
Function *Handler = cast<Function>(CA->getHandlerBlockOrFunc());
|
||||||
getPossibleReturnTargets(&F, Handler, ReturnTargets);
|
getPossibleReturnTargets(&F, Handler, ReturnTargets);
|
||||||
}
|
}
|
||||||
|
delete Action;
|
||||||
}
|
}
|
||||||
|
ActionList.clear();
|
||||||
for (BasicBlock *Target : ReturnTargets) {
|
for (BasicBlock *Target : ReturnTargets) {
|
||||||
Branch->addDestination(Target);
|
Branch->addDestination(Target);
|
||||||
// The target may be a block that we excepted to get pruned.
|
// The target may be a block that we excepted to get pruned.
|
||||||
|
Loading…
Reference in New Issue
Block a user