1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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 968a03f8cd
commit cecffb7afd

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.