Simplify.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 18 Aug 2007 14:46:55 +0000 (14:46 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 18 Aug 2007 14:46:55 +0000 (14:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41167 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h

index ec6a67b60d1f51e9ea1f3f3e5e69ae642b11888f..76998fb36fd8ad8e86fcc949a19b7cf89d39970d 100644 (file)
@@ -379,8 +379,7 @@ public:
   void removeBlock(BasicBlock *BB) {
     assert(find(BB) != end() && "Block is not in DominanceFrontier!");
     for (iterator I = begin(), E = end(); I != E; ++I)
-      if (I->second.count(BB))
-        I->second.erase(BB);
+      I->second.erase(BB);
     Frontiers.erase(BB);
   }