forked from OSchip/llvm-project
[AMDGPU] Fix an unused variable warning (NFC)
This patch fixes: llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp:2245:12: error: unused variable 'Ins' [-Werror,-Wunused-variable]
This commit is contained in:
parent
332642e693
commit
720c48b58e
|
@ -2247,6 +2247,7 @@ bool AMDGPULegalizerInfo::legalizeInsertVectorElt(
|
|||
LLT VecTy = MRI.getType(Vec);
|
||||
LLT EltTy = VecTy.getElementType();
|
||||
assert(EltTy == MRI.getType(Ins));
|
||||
(void)Ins;
|
||||
|
||||
unsigned NumElts = VecTy.getNumElements();
|
||||
if (IdxVal < NumElts) {
|
||||
|
|
Loading…
Reference in New Issue