Skip to content

Commit 59540b2

Browse files
[InstCombine] Fix an "unused variable" warning
1 parent fbd5821 commit 59540b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ Instruction *InstCombinerImpl::FoldShiftByConstant(Value *Op0, Constant *Op1,
685685
unsigned TypeBits = Ty->getScalarSizeInBits();
686686
assert(!Op1C->uge(TypeBits) &&
687687
"Shift over the type width should have been removed already");
688+
(void)TypeBits;
688689

689690
if (Instruction *FoldedShift = foldBinOpIntoSelectOrPhi(I))
690691
return FoldedShift;

0 commit comments

Comments
 (0)