summaryrefslogtreecommitdiff
path: root/lib
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
commitdbcbe3f7e8dad01a6d4ad8460992b9139e4861ba (patch)
tree22b0d0682be1bdc15d4e7c3fb13e75011708c285 /lib
parenta9030cb414dfc4d2e709e4ade2c06fe80ae9ab72 (diff)
downloadllvm-dbcbe3f7e8dad01a6d4ad8460992b9139e4861ba.tar.gz
llvm-dbcbe3f7e8dad01a6d4ad8460992b9139e4861ba.tar.bz2
llvm-dbcbe3f7e8dad01a6d4ad8460992b9139e4861ba.tar.xz
Fix FunctionInlining pass assertion failure:
ilist:104: failed assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/IPO/InlineSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp
index 54092ae91b..d88a923e22 100644
--- a/lib/Transforms/IPO/InlineSimple.cpp
+++ b/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: