From 1b478c9ba7673e14cc118a5af1e674aa5af3e6c8 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Wed, 29 May 2019 04:09:32 +0000 Subject: [PATCH] Inline a variable into debug section to fix unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361927 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachinePipeliner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/MachinePipeliner.cpp b/lib/CodeGen/MachinePipeliner.cpp index 61441d90938..af159f1c455 100644 --- a/lib/CodeGen/MachinePipeliner.cpp +++ b/lib/CodeGen/MachinePipeliner.cpp @@ -3963,10 +3963,10 @@ void ResourceManager::reserveResources(const MCInstrDesc *MID) { STI->getWriteProcResEnd(SCDesc))) { if (!PRE.Cycles) continue; - const MCProcResourceDesc *ProcResource = - SM.getProcResource(PRE.ProcResourceIdx); ++ProcResourceCount[PRE.ProcResourceIdx]; LLVM_DEBUG({ + const MCProcResourceDesc *ProcResource = + SM.getProcResource(PRE.ProcResourceIdx); dbgs() << format(" %16s(%2d): Count: %2d, NumUnits:%2d, Cycles:%2d\n", ProcResource->Name, PRE.ProcResourceIdx, ProcResourceCount[PRE.ProcResourceIdx], -- 2.50.1