projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01eaf90
)
Fix this to work correctly with phis; test case to follow if this successfully
author
John McCall
<rjmccall@apple.com>
Sun, 29 May 2011 03:01:09 +0000
(
03:01
+0000)
committer
John McCall
<rjmccall@apple.com>
Sun, 29 May 2011 03:01:09 +0000
(
03:01
+0000)
fixes self-host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132275
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/InlineFunction.cpp
b/lib/Transforms/Utils/InlineFunction.cpp
index 2f3c045ea5ac000f56198da62d0009d729188c7d..d2fd07aed10cbebdf01fb7a8e2374c544ae6450d 100644
(file)
--- a/
lib/Transforms/Utils/InlineFunction.cpp
+++ b/
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);
}