mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0162c1815e
commit
ab3c9b1f95
@ -379,8 +379,7 @@ public:
|
|||||||
void removeBlock(BasicBlock *BB) {
|
void removeBlock(BasicBlock *BB) {
|
||||||
assert(find(BB) != end() && "Block is not in DominanceFrontier!");
|
assert(find(BB) != end() && "Block is not in DominanceFrontier!");
|
||||||
for (iterator I = begin(), E = end(); I != E; ++I)
|
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);
|
Frontiers.erase(BB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user