Skip to content

Commit 01739ea

Browse files
RKSimonyuxuanchen1997
authored andcommitted
Fix unused variable warning. NFC.
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250521
1 parent 3b395c7 commit 01739ea

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
@@ -2678,7 +2678,7 @@ Instruction *InstCombinerImpl::visitBitCast(BitCastInst &CI) {
26782678
if (DestTy == Src->getType())
26792679
return replaceInstUsesWith(CI, Src);
26802680

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

0 commit comments

Comments
 (0)