OSDN Git Service

R600/SIInstrInfo.cpp: Suppress an warning. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 11 Aug 2014 23:03:38 +0000 (23:03 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 11 Aug 2014 23:03:38 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215406 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/SIInstrInfo.cpp

index c9e121f..5cd8ddf 100644 (file)
@@ -1394,6 +1394,7 @@ void SIInstrInfo::legalizeOperands(MachineInstr *MI) const {
       MachineOperand *SOffset = getNamedOperand(*MI, AMDGPU::OpName::soffset);
       assert(SOffset->isImm() && SOffset->getImm() == 0 && "Legalizing MUBUF "
              "with non-zero soffset is not implemented");
+      (void)SOffset;
 
       // Create the new instruction.
       unsigned Addr64Opcode = AMDGPU::getAddr64Inst(MI->getOpcode());