1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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 6d3a13d64e
commit 99d6a46698

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: