[llvm] r367482 - Fix unused variable warning for non-assert builds.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 14:02:04 PDT 2019
Author: echristo
Date: Wed Jul 31 14:02:03 2019
New Revision: 367482
URL: http://llvm.org/viewvc/llvm-project?rev=367482&view=rev
Log:
Fix unused variable warning for non-assert builds.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=367482&r1=367481&r2=367482&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed Jul 31 14:02:03 2019
@@ -580,6 +580,7 @@ static void collectCallSiteParameters(co
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
More information about the llvm-commits
mailing list