[llvm] 52b231e - [LiveDebugValues] Silence the unused var warning; NFC

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 03:32:50 PST 2019


Author: Djordje Todorovic
Date: 2019-12-05T12:32:14+01:00
New Revision: 52b231ee84cac576044e147e72d9bd5b290de1f3

URL: https://github.com/llvm/llvm-project/commit/52b231ee84cac576044e147e72d9bd5b290de1f3
DIFF: https://github.com/llvm/llvm-project/commit/52b231ee84cac576044e147e72d9bd5b290de1f3.diff

LOG: [LiveDebugValues] Silence the unused var warning; NFC

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugValues.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp
index 58680f7be4ea..04efa7bc35e9 100644
--- a/llvm/lib/CodeGen/LiveDebugValues.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues.cpp
@@ -859,8 +859,7 @@ void LiveDebugValues::insertTransferDebugPair(
     unsigned NewReg) {
   const MachineInstr *DebugInstr = &VarLocIDs[OldVarID].MI;
 
-  auto ProcessVarLoc = [&MI, &OpenRanges, &Transfers, &DebugInstr,
-                        &VarLocIDs](VarLoc &VL) {
+  auto ProcessVarLoc = [&MI, &OpenRanges, &Transfers, &VarLocIDs](VarLoc &VL) {
     unsigned LocId = VarLocIDs.insert(VL);
 
     // Close this variable's previous location range.


        


More information about the llvm-commits mailing list