[llvm] 538c771 - [AMDGPU] Fix unused variable warning after D117484
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 06:51:29 PDT 2022
Author: Jay Foad
Date: 2022-04-06T14:45:38+01:00
New Revision: 538c77172ab773e944686b9e1fd373a069af5633
URL: https://github.com/llvm/llvm-project/commit/538c77172ab773e944686b9e1fd373a069af5633
DIFF: https://github.com/llvm/llvm-project/commit/538c77172ab773e944686b9e1fd373a069af5633.diff
LOG: [AMDGPU] Fix unused variable warning after D117484
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
index 598faf68add56..c257ed789fb05 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
@@ -3026,10 +3026,9 @@ bool AMDGPULegalizerInfo::legalizeKernargMemParameter(MachineInstr &MI,
MachineIRBuilder &B,
uint64_t Offset,
Align Alignment) const {
- const LLT S32 = LLT::scalar(32);
Register DstReg = MI.getOperand(0).getReg();
- assert(B.getMRI()->getType(DstReg) == S32 &&
+ assert(B.getMRI()->getType(DstReg) == LLT::scalar(32) &&
"unexpected kernarg parameter type");
Register Ptr = getKernargParameterPtr(B, Offset);
More information about the llvm-commits
mailing list