[InstCombine] Fix an "unused variable" warning

This commit is contained in:
Kazu Hirata 2021-09-27 09:49:32 -07:00
parent fbd5821c6f
commit 59540b29f8
1 changed files with 1 additions and 0 deletions

View File

@ -685,6 +685,7 @@ Instruction *InstCombinerImpl::FoldShiftByConstant(Value *Op0, Constant *Op1,
unsigned TypeBits = Ty->getScalarSizeInBits();
assert(!Op1C->uge(TypeBits) &&
"Shift over the type width should have been removed already");
(void)TypeBits;
if (Instruction *FoldedShift = foldBinOpIntoSelectOrPhi(I))
return FoldedShift;