[llvm] ea29810 - [CodeGen] Remove a redundant void (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 24 12:27:38 PDT 2022
Author: Kazu Hirata
Date: 2022-07-24T12:27:14-07:00
New Revision: ea29810c9d588c1caa192033f5747b31ca597725
URL: https://github.com/llvm/llvm-project/commit/ea29810c9d588c1caa192033f5747b31ca597725
DIFF: https://github.com/llvm/llvm-project/commit/ea29810c9d588c1caa192033f5747b31ca597725.diff
LOG: [CodeGen] Remove a redundant void (NFC)
Identified with modernize-redundant-void-arg.
Added:
Modified:
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index ef49d3888f2ba..83336e69a7bd8 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -1330,7 +1330,7 @@ bool InstrRefBasedLDV::transferDebugPHI(MachineInstr &MI) {
const MachineOperand &MO = MI.getOperand(0);
unsigned InstrNum = MI.getOperand(1).getImm();
- auto EmitBadPHI = [this, &MI, InstrNum](void) -> bool {
+ auto EmitBadPHI = [this, &MI, InstrNum]() -> bool {
// Helper lambda to do any accounting when we fail to find a location for
// a DBG_PHI. This can happen if DBG_PHIs are malformed, or refer to a
// dead stack slot, for example.
More information about the llvm-commits
mailing list