[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h
David Greene
greened at obbligato.org
Thu Jun 28 19:43:24 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineBasicBlock.h updated: 1.66 -> 1.67
---
Log message:
Fix misue of iterator pointing to erased object. Uncovered by
_GLIBCXX_DEBUG.
---
Diffs of the changes: (+2 -2)
MachineBasicBlock.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.66 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.67
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.66 Mon Jun 18 17:43:58 2007
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h Thu Jun 28 21:43:02 2007
@@ -211,9 +211,9 @@
/// removeSuccessor - Remove specified successor from the successors list of
/// this MachineBasicBlock. The Predecessors list of succ is automatically
- /// updated.
+ /// updated. Return the iterator to the element after the one removed.
///
- void removeSuccessor(succ_iterator I);
+ succ_iterator removeSuccessor(succ_iterator I);
/// isSuccessor - Return true if the specified MBB is a successor of this
/// block.
More information about the llvm-commits
mailing list