Skip to content

Commit bec8dff

Browse files
committed
[AMDGPU] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
1 parent fb193db commit bec8dff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ bool R600MachineCFGStructurizer::run() {
741741
++NumIter;
742742
LLVM_DEBUG(dbgs() << "numIter = " << NumIter
743743
<< ", numRemaintedBlk = " << NumRemainedBlk << "\n";);
744+
(void)NumIter;
744745

745746
SmallVectorImpl<MachineBasicBlock *>::const_iterator It =
746747
OrderedBlks.begin();
@@ -781,6 +782,7 @@ bool R600MachineCFGStructurizer::run() {
781782
LLVM_DEBUG(dbgs() << "Can't reduce SCC " << getSCCNum(MBB)
782783
<< ", sccNumIter = " << SccNumIter;
783784
dbgs() << "doesn't make any progress\n";);
785+
(void)SccNumIter;
784786
ContNextScc = true;
785787
} else if (sccRemainedNumBlk != 1 && sccRemainedNumBlk < SccNumBlk) {
786788
SccNumBlk = sccRemainedNumBlk;

0 commit comments

Comments
 (0)