[llvm-commits] [llvm] r41167 - /llvm/trunk/include/llvm/Analysis/Dominators.h
Nick Lewycky
nicholas at mxc.ca
Sat Aug 18 07:46:56 PDT 2007
Author: nicholas
Date: Sat Aug 18 09:46:55 2007
New Revision: 41167
URL: http://llvm.org/viewvc/llvm-project?rev=41167&view=rev
Log:
Simplify.
Modified:
llvm/trunk/include/llvm/Analysis/Dominators.h
Modified: llvm/trunk/include/llvm/Analysis/Dominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/Dominators.h?rev=41167&r1=41166&r2=41167&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/Dominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/Dominators.h Sat Aug 18 09:46:55 2007
@@ -379,8 +379,7 @@
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);
}
More information about the llvm-commits
mailing list