diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-16 22:30:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-16 22:30:20 +0000 |
commit | dbcbe3f7e8dad01a6d4ad8460992b9139e4861ba (patch) | |
tree | 22b0d0682be1bdc15d4e7c3fb13e75011708c285 /lib/Transforms/IPO/InlineSimple.cpp | |
parent | a9030cb414dfc4d2e709e4ade2c06fe80ae9ab72 (diff) |
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/Transforms/IPO/InlineSimple.cpp')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 2 |
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: |