mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user