From 397162e8864672cfe1a67c386922cd564f3ec267 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Sun, 2 May 2004 01:04:52 +0000 Subject: [PATCH] Chris told me to take these assertions out a few days ago, but I forgot to check this in. llvm-svn: 13313 --- include/llvm/CodeGen/MachineBasicBlock.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index aadc835c25a..5faf2a21a97 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -122,9 +122,6 @@ public: /// The Predecessors list of succ is automatically updated. /// void addSuccessor (MachineBasicBlock *succ) { - assert (std::find (Successors.begin (), Successors.end (), succ) - == Successors.end () - && "Trying to addSuccessor a MBB which is already my successor"); Successors.push_back (succ); succ->addPredecessor (this); } @@ -136,8 +133,6 @@ public: succ->removePredecessor (this); std::vector::iterator goner = std::find (Successors.begin(), Successors.end (), succ); - assert (goner != Successors.end () - && "Trying to removeSuccessor a MBB which isn't my successor"); Successors.erase (goner); } @@ -178,9 +173,6 @@ private: // Methods used to maintain doubly linked list of blocks... /// update pred's successors list. Use pred->addSuccessor instead. /// void addPredecessor (MachineBasicBlock *pred) { - assert(std::find (Predecessors.begin (), Predecessors.end (), pred) - == Predecessors.end () - && "Trying to addPredecessor a MBB which is already my predecessor"); Predecessors.push_back (pred); } @@ -192,8 +184,6 @@ private: // Methods used to maintain doubly linked list of blocks... void removePredecessor (MachineBasicBlock *pred) { std::vector::iterator goner = std::find (Predecessors.begin(), Predecessors.end (), pred); - assert (goner != Predecessors.end () - && "Trying to removePredecessor a MBB which isn't my predecessor"); Predecessors.erase (goner); } };