forked from OSchip/llvm-project
[InstCombine] Fix an "unused variable" warning
This commit is contained in:
parent
fbd5821c6f
commit
59540b29f8
|
@ -685,6 +685,7 @@ Instruction *InstCombinerImpl::FoldShiftByConstant(Value *Op0, Constant *Op1,
|
||||||
unsigned TypeBits = Ty->getScalarSizeInBits();
|
unsigned TypeBits = Ty->getScalarSizeInBits();
|
||||||
assert(!Op1C->uge(TypeBits) &&
|
assert(!Op1C->uge(TypeBits) &&
|
||||||
"Shift over the type width should have been removed already");
|
"Shift over the type width should have been removed already");
|
||||||
|
(void)TypeBits;
|
||||||
|
|
||||||
if (Instruction *FoldedShift = foldBinOpIntoSelectOrPhi(I))
|
if (Instruction *FoldedShift = foldBinOpIntoSelectOrPhi(I))
|
||||||
return FoldedShift;
|
return FoldedShift;
|
||||||
|
|
Loading…
Reference in New Issue