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
This commit is contained in:
David Greene
2007-06-29 02:45:24 +00:00
parent 6c631988c7
commit 8a46d342d8
3 changed files with 10 additions and 9 deletions

View File

@@ -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.