Updates to support
* Changes in PHI node structure
llvm-svn: 25
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp
index a1e3156b..0a191a5 100644
--- a/llvm/lib/Transforms/IPO/InlineSimple.cpp
+++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp
@@ -158,7 +158,7 @@
assert(RI->getReturnValue() && "Ret should have value!");
assert(RI->getReturnValue()->getType() == PHI->getType() &&
"Ret value not consistent in method!");
- PHI->addIncoming((Value*)RI->getReturnValue());
+ PHI->addIncoming((Value*)RI->getReturnValue(), (BasicBlock*)BB);
}
// Add a branch to the code that was after the original Call.