[llvm] dbb2fd5 - [CodeGen] Remove unused lambda capture (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 02:58:08 PDT 2024
Author: Jie Fu
Date: 2024-03-15T17:57:24+08:00
New Revision: dbb2fd5974fbdf82d4b1b0dd0dde5170e3629768
URL: https://github.com/llvm/llvm-project/commit/dbb2fd5974fbdf82d4b1b0dd0dde5170e3629768
DIFF: https://github.com/llvm/llvm-project/commit/dbb2fd5974fbdf82d4b1b0dd0dde5170e3629768.diff
LOG: [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.
Added:
Modified:
llvm/lib/CodeGen/MachineLoopInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineLoopInfo.cpp b/llvm/lib/CodeGen/MachineLoopInfo.cpp
index 6e7f4062f7e0f5..1019c53e57c6fb 100644
--- a/llvm/lib/CodeGen/MachineLoopInfo.cpp
+++ b/llvm/lib/CodeGen/MachineLoopInfo.cpp
@@ -212,7 +212,7 @@ bool MachineLoop::isLoopInvariantImplicitPhysReg(Register Reg) const {
return !llvm::any_of(
MRI->def_instructions(Reg),
- [this, Reg](const MachineInstr &MI) { return this->contains(&MI); });
+ [this](const MachineInstr &MI) { return this->contains(&MI); });
}
bool MachineLoop::isLoopInvariant(MachineInstr &I,
More information about the llvm-commits
mailing list