diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2007-08-18 14:46:55 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2007-08-18 14:46:55 +0000 |
commit | ab3c9b1f95fc7ffd4144babd502c112d43aec7c4 (patch) | |
tree | 0d726c4c06e58cabea1bdd4977c32e0ca54e3835 /include/llvm | |
parent | 0162c1815e5a1b33750d313c49f707bc446ea946 (diff) | |
download | external_llvm-ab3c9b1f95fc7ffd4144babd502c112d43aec7c4.zip external_llvm-ab3c9b1f95fc7ffd4144babd502c112d43aec7c4.tar.gz external_llvm-ab3c9b1f95fc7ffd4144babd502c112d43aec7c4.tar.bz2 |
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index ec6a67b..76998fb 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -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); } |