[llvm] r373646 - [NFC] Fix unused variable in release builds
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 11:35:44 PDT 2019
Author: rupprecht
Date: Thu Oct 3 11:35:44 2019
New Revision: 373646
URL: http://llvm.org/viewvc/llvm-project?rev=373646&view=rev
Log:
[NFC] Fix unused variable in release builds
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp?rev=373646&r1=373645&r2=373646&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp Thu Oct 3 11:35:44 2019
@@ -1648,6 +1648,7 @@ void AMDGPURegisterBankInfo::applyMappin
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::applyMappin
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(
getOperandsMapping(OpdsMapping),
MI.getNumOperands());
}
-
More information about the llvm-commits
mailing list