From fb65d2c2417254a45c682c6aafaa0fc15717a503 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 1 Oct 2015 22:40:35 +0000 Subject: [PATCH] AMDGPU: Fix unused variable warning in release build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249091 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/SIInsertWaits.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/AMDGPU/SIInsertWaits.cpp b/lib/Target/AMDGPU/SIInsertWaits.cpp index e0cf84abefc..eeb79eed640 100644 --- a/lib/Target/AMDGPU/SIInsertWaits.cpp +++ b/lib/Target/AMDGPU/SIInsertWaits.cpp @@ -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); -- 2.34.1