Skip to content

Commit 79748ad

Browse files
committed
Fix MSVC lamdba default capture mode warning. NFCI.
1 parent 31e0769 commit 79748ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Utils/CodeMoverUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const Optional<ControlConditions> ControlConditions::collectControlConditions(
154154

155155
bool ControlConditions::addControlCondition(ControlCondition C) {
156156
bool Inserted = false;
157-
if (none_of(Conditions, [&C](ControlCondition &Exists) {
157+
if (none_of(Conditions, [&](ControlCondition &Exists) {
158158
return ControlConditions::isEquivalent(C, Exists);
159159
})) {
160160
Conditions.push_back(C);
@@ -172,8 +172,8 @@ bool ControlConditions::isEquivalent(const ControlConditions &Other) const {
172172
if (Conditions.size() != Other.Conditions.size())
173173
return false;
174174

175-
return all_of(Conditions, [&Other](const ControlCondition &C) {
176-
return any_of(Other.Conditions, [&C](const ControlCondition &OtherC) {
175+
return all_of(Conditions, [&](const ControlCondition &C) {
176+
return any_of(Other.Conditions, [&](const ControlCondition &OtherC) {
177177
return ControlConditions::isEquivalent(C, OtherC);
178178
});
179179
});

0 commit comments

Comments
 (0)