[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:
Kazu Hirata 2022-01-10 08:49:46 -08:00
parent 332642e693
commit 720c48b58e
1 changed files with 1 additions and 0 deletions

View File

@ -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) {