Skip to content
Snippets Groups Projects
Commit afb4fc18 authored by Chris Lattner's avatar Chris Lattner
Browse files

Fix FunctionInlining pass assertion failure:

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

llvm-svn: 3768
parent b1a712ef
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment