[llvm] r222017 - Fix unused variable warning without asserts
Matt Arsenault
Matthew.Arsenault at amd.com
Fri Nov 14 10:40:49 PST 2014
Author: arsenm
Date: Fri Nov 14 12:40:49 2014
New Revision: 222017
URL: http://llvm.org/viewvc/llvm-project?rev=222017&view=rev
Log:
Fix unused variable warning without asserts
Modified:
llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.cpp?rev=222017&r1=222016&r2=222017&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.cpp Fri Nov 14 12:40:49 2014
@@ -2184,6 +2184,8 @@ void SIInstrInfo::splitScalar64BitBFE(Sm
uint32_t Offset = Imm & 0x3f; // Extract bits [5:0].
uint32_t BitWidth = (Imm & 0x7f0000) >> 16; // Extract bits [22:16].
+ (void) Offset;
+
// Only sext_inreg cases handled.
assert(Inst->getOpcode() == AMDGPU::S_BFE_I64 &&
BitWidth <= 32 &&
More information about the llvm-commits
mailing list