AMDGPU: Fix unused variable warning in release build

llvm-svn: 249091
This commit is contained in:
Matt Arsenault 2015-10-01 22:40:35 +00:00
parent f80c6e8810
commit 27753ff832

View File

@ -158,8 +158,8 @@ Counters SIInsertWaits::getHwCounts(MachineInstr &MI) {
if (TII->isSMRD(MI.getOpcode())) {
if (MI.getNumOperands() != 0) {
MachineOperand &Op = MI.getOperand(0);
assert(Op.isReg() && "First LGKM operand must be a register!");
assert(MI.getOperand(0).isReg() &&
"First LGKM operand must be a register!");
// XXX - What if this is a write into a super register?
const TargetRegisterClass *RC = TII->getOpRegClass(MI, 0);