[llvm-commits] CVS: llvm/lib/Transforms/FunctionInlining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 16 17:31:02 PDT 2002
Changes in directory llvm/lib/Transforms:
FunctionInlining.cpp updated: 1.34 -> 1.35
---
Log message:
Fix FunctionInlining pass assertion failure:
ilist:104: failed assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"'
---
Diffs of the changes:
Index: llvm/lib/Transforms/FunctionInlining.cpp
diff -u llvm/lib/Transforms/FunctionInlining.cpp:1.34 llvm/lib/Transforms/FunctionInlining.cpp:1.35
--- llvm/lib/Transforms/FunctionInlining.cpp:1.34 Tue Sep 10 17:38:44 2002
+++ llvm/lib/Transforms/FunctionInlining.cpp Mon Sep 16 17:30:20 2002
@@ -163,7 +163,7 @@
}
// 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:
More information about the llvm-commits
mailing list