1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix MSVC lamdba default capture mode warning. NFCI.

This commit is contained in:
Simon Pilgrim 2020-01-29 15:19:26 +00:00
parent 88aea68633
commit eaeccf5f3c

View File

@ -154,7 +154,7 @@ const Optional<ControlConditions> ControlConditions::collectControlConditions(
bool ControlConditions::addControlCondition(ControlCondition C) {
bool Inserted = false;
if (none_of(Conditions, [&C](ControlCondition &Exists) {
if (none_of(Conditions, [&](ControlCondition &Exists) {
return ControlConditions::isEquivalent(C, Exists);
})) {
Conditions.push_back(C);
@ -172,8 +172,8 @@ bool ControlConditions::isEquivalent(const ControlConditions &Other) const {
if (Conditions.size() != Other.Conditions.size())
return false;
return all_of(Conditions, [&Other](const ControlCondition &C) {
return any_of(Other.Conditions, [&C](const ControlCondition &OtherC) {
return all_of(Conditions, [&](const ControlCondition &C) {
return any_of(Other.Conditions, [&](const ControlCondition &OtherC) {
return ControlConditions::isEquivalent(C, OtherC);
});
});