forked from OSchip/llvm-project
Remove a redundant assertion in MachineBasicBlock.cpp. NFC.
llvm-svn: 253426
This commit is contained in:
parent
11c1420173
commit
136bc65ec8
|
@ -545,7 +545,6 @@ void MachineBasicBlock::addSuccessorWithoutProb(MachineBasicBlock *Succ) {
|
||||||
|
|
||||||
void MachineBasicBlock::removeSuccessor(MachineBasicBlock *Succ) {
|
void MachineBasicBlock::removeSuccessor(MachineBasicBlock *Succ) {
|
||||||
succ_iterator I = std::find(Successors.begin(), Successors.end(), Succ);
|
succ_iterator I = std::find(Successors.begin(), Successors.end(), Succ);
|
||||||
assert(I != Successors.end() && "Not a current successor!");
|
|
||||||
removeSuccessor(I);
|
removeSuccessor(I);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue