Remove a redundant assertion in MachineBasicBlock.cpp. NFC.
authorCong Hou <congh@google.com>
Wed, 18 Nov 2015 01:55:56 +0000 (01:55 +0000)
committerCong Hou <congh@google.com>
Wed, 18 Nov 2015 01:55:56 +0000 (01:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253426 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBasicBlock.cpp

index 354bd3e..80e5d82 100644 (file)
@@ -545,7 +545,6 @@ void MachineBasicBlock::addSuccessorWithoutProb(MachineBasicBlock *Succ) {
 
 void MachineBasicBlock::removeSuccessor(MachineBasicBlock *Succ) {
   succ_iterator I = std::find(Successors.begin(), Successors.end(), Succ);
-  assert(I != Successors.end() && "Not a current successor!");
   removeSuccessor(I);
 }