[llvm-commits] CVS: llvm/lib/CodeGen/BranchFolding.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 31 11:40:46 PDT 2004
Changes in directory llvm/lib/CodeGen:
BranchFolding.cpp updated: 1.3 -> 1.4
---
Log message:
Next on a pointer increments the pointer, not an iterator
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/BranchFolding.cpp
diff -u llvm/lib/CodeGen/BranchFolding.cpp:1.3 llvm/lib/CodeGen/BranchFolding.cpp:1.4
--- llvm/lib/CodeGen/BranchFolding.cpp:1.3 Sat Jul 31 10:14:29 2004
+++ llvm/lib/CodeGen/BranchFolding.cpp Sat Jul 31 13:40:36 2004
@@ -114,7 +114,7 @@
// explicitly.
if (MBB->empty()) {
if (MBB->pred_empty()) return false;
- MachineFunction::iterator FallThrough = next(MBB);
+ MachineFunction::iterator FallThrough =next(MachineFunction::iterator(MBB));
assert(FallThrough != MBB->getParent()->end() &&
"Fell off the end of the function!");
while (!MBB->pred_empty()) {
More information about the llvm-commits
mailing list