From 6b9c1be4eaf35180c03fedce483c6b798be91c8a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 27 Oct 2016 23:28:03 +0000 Subject: [PATCH] AMDGPU/SI: Fix unused variable warning on non-debug builds llvm-svn: 285363 --- llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp index 7086e86f6a8e..687076aabc89 100644 --- a/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp +++ b/llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp @@ -399,6 +399,7 @@ int GCNHazardRecognizer::createsVALUHazard(const MachineInstr &MI) { int SRsrcIdx = AMDGPU::getNamedOperandIdx(Opcode, AMDGPU::OpName::srsrc); assert(SRsrcIdx != -1 && AMDGPU::getRegBitWidth(Desc.OpInfo[SRsrcIdx].RegClass) == 256); + (void)SRsrcIdx; } if (TII->isFLAT(MI)) {