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:
parent
6d3a13d64e
commit
99d6a46698
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user