Fix FunctionInlining pass assertion failure:

ilist:104: failed assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"'

llvm-svn: 3768
This commit is contained in:
Chris Lattner 2002-09-16 22:30:20 +00:00
parent b1a712efcc
commit afb4fc189c
1 changed files with 1 additions and 1 deletions

View File

@ -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: