diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -11536,6 +11536,7 @@ auto DstReg = MI.getOperand(0).getReg(); auto MIB = BuildMI(MBB, MI, MI.getDebugLoc(), TII.get(Opcode), DstReg) .add(MI.getOperand(1)); + (void)MIB; LLVM_DEBUG(dbgs() << " to: " << *MIB.getInstr()); MI.eraseFromParent(); }