summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-05-29 03:01:09 +0000
committerJohn McCall <rjmccall@apple.com>2011-05-29 03:01:09 +0000
commit2c6d23fba23e7e997bb2fd664e3f8043ddec3449 (patch)
tree45bb8ed55894283d74252b4a60edb9d9ed659c28 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parentfd75d45b88a493568f200191071db8f7bcbbaa3d (diff)
downloadbcm5719-llvm-2c6d23fba23e7e997bb2fd664e3f8043ddec3449.tar.gz
bcm5719-llvm-2c6d23fba23e7e997bb2fd664e3f8043ddec3449.zip
Fix this to work correctly with phis; test case to follow if this successfully
fixes self-host. llvm-svn: 132275
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 2f3c045ea5a..d2fd07aed10 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -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);
}
OpenPOWER on IntegriCloud