[CodeGen] Remove a redundant void (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 24 Jul 2022 19:27:14 +0000 (12:27 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 24 Jul 2022 19:27:14 +0000 (12:27 -0700)
Identified with modernize-redundant-void-arg.

llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

index ef49d3888f2ba8b325d81ff85c320cb63c8bebd7..83336e69a7bd8dcb60c6d4a62f3e81233b09c01f 100644 (file)
@@ -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.