Fix this to work correctly with phis; test case to follow if this successfully

fixes self-host.

llvm-svn: 132275
This commit is contained in:
John McCall 2011-05-29 03:01:09 +00:00
parent 51a8fe13bc
commit 233946583f

View File

@ -189,6 +189,7 @@ BasicBlock *InvokeInliningInfo::getInnerUnwindDest() {
PHINode *innerPhi = PHINode::Create(outerPhi->getType(), phiCapacity,
outerPhi->getName() + ".lpad-body",
insertPoint);
outerPhi->replaceAllUsesWith(innerPhi);
innerPhi->addIncoming(outerPhi, OuterUnwindDest);
}