mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Fix this to work correctly with phis; test case to follow if this successfully
fixes self-host. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -189,6 +189,7 @@ BasicBlock *InvokeInliningInfo::getInnerUnwindDest() {
|
|||||||
PHINode *innerPhi = PHINode::Create(outerPhi->getType(), phiCapacity,
|
PHINode *innerPhi = PHINode::Create(outerPhi->getType(), phiCapacity,
|
||||||
outerPhi->getName() + ".lpad-body",
|
outerPhi->getName() + ".lpad-body",
|
||||||
insertPoint);
|
insertPoint);
|
||||||
|
outerPhi->replaceAllUsesWith(innerPhi);
|
||||||
innerPhi->addIncoming(outerPhi, OuterUnwindDest);
|
innerPhi->addIncoming(outerPhi, OuterUnwindDest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user