Simplify.

llvm-svn: 41167
This commit is contained in:
Nick Lewycky 2007-08-18 14:46:55 +00:00
parent e2de908a28
commit 5dccc83b4b
1 changed files with 1 additions and 2 deletions

View 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);
}