Skip to content

Commit dbb2fd5

Browse files
committed
[CodeGen] Remove unused lambda capture (NFC)
llvm-project/llvm/lib/CodeGen/MachineLoopInfo.cpp:215:14: error: lambda capture 'Reg' is not used [-Werror,-Wunused-lambda-capture] [this, Reg](const MachineInstr &MI) { return this->contains(&MI); }); ~~^~~ 1 error generated.
1 parent 72d85b0 commit dbb2fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineLoopInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ bool MachineLoop::isLoopInvariantImplicitPhysReg(Register Reg) const {
212212

213213
return !llvm::any_of(
214214
MRI->def_instructions(Reg),
215-
[this, Reg](const MachineInstr &MI) { return this->contains(&MI); });
215+
[this](const MachineInstr &MI) { return this->contains(&MI); });
216216
}
217217

218218
bool MachineLoop::isLoopInvariant(MachineInstr &I,

0 commit comments

Comments
 (0)