Fix this to work correctly with phis;  test case to follow if this successfully
fixes self-host.

llvm-svn: 132275
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 2f3c045..d2fd07a 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -189,6 +189,7 @@
     PHINode *innerPhi = PHINode::Create(outerPhi->getType(), phiCapacity,
                                         outerPhi->getName() + ".lpad-body",
                                         insertPoint);
+    outerPhi->replaceAllUsesWith(innerPhi);
     innerPhi->addIncoming(outerPhi, OuterUnwindDest);
   }