projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8fa36
)
[CodeGen] Remove a redundant void (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 24 Jul 2022 19:27:14 +0000
(12:27 -0700)
committer
Kazu 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
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index ef49d3888f2ba8b325d81ff85c320cb63c8bebd7..83336e69a7bd8dcb60c6d4a62f3e81233b09c01f 100644
(file)
--- 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.