aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-24 12:27:14 -0700
committerKazu Hirata <kazu@google.com>2022-07-24 12:27:14 -0700
commitea29810c9d588c1caa192033f5747b31ca597725 (patch)
tree7ea809b0e9b0d6c972472bea297368ac42762f99 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parentec8fa36d7c49b5ee9b8a6c46f6405656d9327a01 (diff)
downloadllvm-ea29810c9d588c1caa192033f5747b31ca597725.zip
llvm-ea29810c9d588c1caa192033f5747b31ca597725.tar.gz
llvm-ea29810c9d588c1caa192033f5747b31ca597725.tar.bz2
[CodeGen] Remove a redundant void (NFC)
Identified with modernize-redundant-void-arg.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index ef49d38..83336e6 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.