Skip to content

Commit 83f3908

Browse files
[AMDGPU] Fix a warning
This patch fixes: llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp:298:9: error: unused variable 'Src0Idx' [-Werror,-Wunused-variable]
1 parent 9f7bb1c commit 83f3908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ MachineInstr *GCNDPPCombine::createDPPInst(MachineInstr &OrigMI,
295295
}
296296
auto *Src0 = TII->getNamedOperand(MovMI, AMDGPU::OpName::src0);
297297
assert(Src0);
298-
int Src0Idx = NumOperands;
298+
[[maybe_unused]] int Src0Idx = NumOperands;
299299

300300
DPPInst.add(*Src0);
301301
DPPInst->getOperand(NumOperands).setIsKill(false);

0 commit comments

Comments
 (0)