forked from OSchip/llvm-project
Consilidate SmallPtrSet count() followed by insert() into a single insert().
llvm-svn: 162330
This commit is contained in:
parent
7fb0cd26f7
commit
34d39287b5
|
@ -477,12 +477,8 @@ public:
|
|||
}
|
||||
|
||||
bool AddToWorkList(const MemRegion *R, const ClusterBindings *C) {
|
||||
if (C) {
|
||||
if (Visited.count(C))
|
||||
if (C && !Visited.insert(C))
|
||||
return false;
|
||||
Visited.insert(C);
|
||||
}
|
||||
|
||||
WL.push_back(R);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue