Skip to content

Commit aa74649

Browse files
committed
[InstCombine] Remove unused variable in InstCombineCompares.cpp (NFC)
/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:3190:14: error: unused variable 'CmpBW' [-Werror,-Wunused-variable] unsigned CmpBW = Ty->getScalarSizeInBits(); ^ 1 error generated.
1 parent ddb62d2 commit aa74649

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3187,7 +3187,6 @@ Instruction *InstCombinerImpl::foldICmpAddConstant(ICmpInst &Cmp,
31873187
Value *V;
31883188
if (match(X, m_ZExt(m_Value(V)))) {
31893189
Type *NewCmpTy = V->getType();
3190-
unsigned CmpBW = Ty->getScalarSizeInBits();
31913190
unsigned NewCmpBW = NewCmpTy->getScalarSizeInBits();
31923191
if (shouldChangeType(Ty, NewCmpTy)) {
31933192
if (CR.getActiveBits() <= NewCmpBW) {

0 commit comments

Comments
 (0)