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 2648702e92
commit b733f00510
1 changed files with 2 additions and 2 deletions

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);