Fixing a memory leak in WinEHPrepare

llvm-svn: 234059
This commit is contained in:
Andrew Kaylor 2015-04-03 21:44:17 +00:00
parent aa41cd57e0
commit 7a0cec399d
1 changed files with 2 additions and 0 deletions

View File

@ -733,6 +733,8 @@ void WinEHPrepare::completeNestedLandingPad(Function *ParentFn,
ActionTargets.push_back(NewBA);
}
}
DeleteContainerPointers(ActionList);
ActionList.clear();
OutlinedBB->getInstList().push_back(EHActions);
// Insert an indirect branch into the outlined landing pad BB.