From 2c6d23fba23e7e997bb2fd664e3f8043ddec3449 Mon Sep 17 00:00:00 2001 From: John McCall Date: Sun, 29 May 2011 03:01:09 +0000 Subject: Fix this to work correctly with phis; test case to follow if this successfully fixes self-host. llvm-svn: 132275 --- llvm/lib/Transforms/Utils/InlineFunction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms/Utils') 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); } -- cgit v1.2.3