Fix unused variable warning without asserts

llvm-svn: 222017
This commit is contained in:
Matt Arsenault 2014-11-14 18:40:49 +00:00
parent 8fbe439869
commit 6ad34266e3
1 changed files with 2 additions and 0 deletions

View File

@ -2184,6 +2184,8 @@ void SIInstrInfo::splitScalar64BitBFE(SmallVectorImpl<MachineInstr *> &Worklist,
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 &&