From 0fe42534131a63e6938c7922dbf93eac506bd70e Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Thu, 3 Oct 2019 18:35:44 +0000 Subject: [PATCH] [NFC] Fix unused variable in release builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373646 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp b/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp index b868e1d6437..35040af9812 100644 --- a/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp +++ b/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp @@ -1648,6 +1648,7 @@ void AMDGPURegisterBankInfo::applyMappingImpl( Register SrcReg = MI.getOperand(1).getReg(); Register IdxReg = MI.getOperand(2).getReg(); LLT DstTy = MRI.getType(DstReg); + (void)DstTy; assert(DstTy.getSizeInBits() == 64); @@ -1715,6 +1716,7 @@ void AMDGPURegisterBankInfo::applyMappingImpl( Register IdxReg = MI.getOperand(3).getReg(); LLT SrcTy = MRI.getType(SrcReg); LLT InsTy = MRI.getType(InsReg); + (void)InsTy; assert(InsTy.getSizeInBits() == 64); @@ -2921,4 +2923,3 @@ AMDGPURegisterBankInfo::getInstrMapping(const MachineInstr &MI) const { getOperandsMapping(OpdsMapping), MI.getNumOperands()); } - -- 2.40.0