From 52b231ee84cac576044e147e72d9bd5b290de1f3 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 5 Dec 2019 12:21:51 +0100 Subject: [PATCH] [LiveDebugValues] Silence the unused var warning; NFC --- llvm/lib/CodeGen/LiveDebugValues.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.