mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
a9030cb414
commit
dbcbe3f7e8
@ -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