From: Richard Trieu Date: Wed, 29 May 2019 03:43:01 +0000 (+0000) Subject: Inline value into debug statement to avoid unused variable warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=832c9e479f1997724fb2d9ff4fa364776cab745b;p=llvm Inline value into debug statement to avoid unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361924 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachinePipeliner.cpp b/lib/CodeGen/MachinePipeliner.cpp index 051cd07cdae..61441d90938 100644 --- a/lib/CodeGen/MachinePipeliner.cpp +++ b/lib/CodeGen/MachinePipeliner.cpp @@ -3965,13 +3965,12 @@ void ResourceManager::reserveResources(const MCInstrDesc *MID) { continue; const MCProcResourceDesc *ProcResource = SM.getProcResource(PRE.ProcResourceIdx); - unsigned NumUnits = ProcResource->NumUnits; ++ProcResourceCount[PRE.ProcResourceIdx]; LLVM_DEBUG({ dbgs() << format(" %16s(%2d): Count: %2d, NumUnits:%2d, Cycles:%2d\n", ProcResource->Name, PRE.ProcResourceIdx, - ProcResourceCount[PRE.ProcResourceIdx], NumUnits, - PRE.Cycles); + ProcResourceCount[PRE.ProcResourceIdx], + ProcResource->NumUnits, PRE.Cycles); }); } LLVM_DEBUG({ dbgs() << "reserveResources: done!\n\n"; });