summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/InlineSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-16 22:30:20 +0000
committerChris Lattner <sabre@nondot.org>2002-09-16 22:30:20 +0000
commitafb4fc189c3f5c552dfd4dc5eed93072143daadd (patch)
tree102daacdb018a095588d943194a1f6447f54168b /llvm/lib/Transforms/IPO/InlineSimple.cpp
parentb1a712efcc73bd595a885cb06aef60304f600889 (diff)
downloadbcm5719-llvm-afb4fc189c3f5c552dfd4dc5eed93072143daadd.tar.gz
bcm5719-llvm-afb4fc189c3f5c552dfd4dc5eed93072143daadd.zip
Fix FunctionInlining pass assertion failure:
ilist:104: failed assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' llvm-svn: 3768
Diffstat (limited to 'llvm/lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/InlineSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/InlineSimple.cpp b/llvm/lib/Transforms/IPO/InlineSimple.cpp
index 54092ae91b4..d88a923e225 100644
--- a/llvm/lib/Transforms/IPO/InlineSimple.cpp
+++ b/llvm/lib/Transforms/IPO/InlineSimple.cpp
@@ -163,7 +163,7 @@ bool InlineFunction(CallInst *CI) {
}
// Add a branch to the code that was after the original Call.
- new BranchInst(NewBB, IBB->end());
+ IBB->getInstList().push_back(new BranchInst(NewBB));
break;
}
case Instruction::Br:
OpenPOWER on IntegriCloud