mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 05:31:37 +00:00
Simplify contains tests using 'count'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c05f2b99e
commit
0b2500c504
@ -967,8 +967,7 @@ namespace {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (CurrentPairs.count(C->second) != 0 &&
|
||||
Visited.count(C->second) == 0)
|
||||
if (CurrentPairs.count(C->second) && !Visited.count(C->second))
|
||||
Q.push_back(C->second);
|
||||
}
|
||||
} while (!Q.empty());
|
||||
|
Loading…
Reference in New Issue
Block a user