aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineBasicBlock.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-06-29 02:45:24 +0000
committerDavid Greene <greened@obbligato.org>2007-06-29 02:45:24 +0000
commit8a46d342d8cbca7c9c7be6c66007d41329babad0 (patch)
treeeabf5286e6dbaaad09b1bf5847e705a640d2cd8c /include/llvm/CodeGen/MachineBasicBlock.h
parent6c631988c724b58a69c49af782d1eec79e46d29f (diff)
Fix misue of iterator pointing to erased object. Uncovered by
_GLIBCXX_DEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index fe8a0ab300..df6e5a32a8 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -211,9 +211,9 @@ public:
/// 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.