From: Jeremy Morse Date: Wed, 4 Sep 2019 10:18:03 +0000 (+0000) Subject: [LiveDebugValues][NFC] Silence an unused variable warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb91402eff507ebe741ae069fc1308e85360b2f6;p=llvm [LiveDebugValues][NFC] Silence an unused variable warning On release builds, 'MI' isn't used by anything (it's already inserted into a block by BuildMI), while on non-release builds it's used by a LLVM_DEBUG statement. Mark as explicitly used to avoid the warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370870 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveDebugValues.cpp b/lib/CodeGen/LiveDebugValues.cpp index ea5512fc369..48f361659f1 100644 --- a/lib/CodeGen/LiveDebugValues.cpp +++ b/lib/CodeGen/LiveDebugValues.cpp @@ -1172,6 +1172,7 @@ void LiveDebugValues::flushPendingLocs(VarLocInMBB &PendingInLocs, DebugInstr->getDesc(), IsIndirect, Reg, DebugInstr->getDebugVariable(), DebugExpr); } + (void)MI; LLVM_DEBUG(dbgs() << "Inserted: "; MI->dump();); } }