From ae45f3396152720f9afe5d6184fd41ab7339db36 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 31 Jul 2019 21:02:03 +0000 Subject: [PATCH] Fix unused variable warning for non-assert builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367482 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 72792c8b3d5..5ca49e1b6b7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -580,6 +580,7 @@ static void collectCallSiteParameters(const MachineInstr *CallMI, for (auto ArgReg : CallFwdRegsInfo->second) { bool InsertedReg = ForwardedRegWorklist.insert(ArgReg.Reg).second; assert(InsertedReg && "Single register used to forward two arguments?"); + (void)InsertedReg; } // We erase, from the ForwardedRegWorklist, those forwarding registers for -- 2.40.0