Skip to content

Commit 4c8ef2e

Browse files
authored
Fix unused variable warning. NFC. (llvm#2788)
(cherry picked from commit abacc52)
1 parent f0c1f2b commit 4c8ef2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ Instruction *InstCombinerImpl::visitBitCast(BitCastInst &CI) {
27432743
if (DestTy == Src->getType())
27442744
return replaceInstUsesWith(CI, Src);
27452745

2746-
if (FixedVectorType *DestVTy = dyn_cast<FixedVectorType>(DestTy)) {
2746+
if (isa<FixedVectorType>(DestTy)) {
27472747
if (isa<IntegerType>(SrcTy)) {
27482748
// If this is a cast from an integer to vector, check to see if the input
27492749
// is a trunc or zext of a bitcast from vector. If so, we can replace all

0 commit comments

Comments
 (0)