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:
David Blaikie
2012-02-05 06:35:36 +00:00
parent 5c05f2b99e
commit 0b2500c504

View File

@@ -967,8 +967,7 @@ namespace {
return true; return true;
} }
if (CurrentPairs.count(C->second) != 0 && if (CurrentPairs.count(C->second) && !Visited.count(C->second))
Visited.count(C->second) == 0)
Q.push_back(C->second); Q.push_back(C->second);
} }
} while (!Q.empty()); } while (!Q.empty());