diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-07-25 16:54:46 +0100 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-07-25 16:56:00 +0100 |
| commit | abacc5220e228012b0b86ca2ed540ef1a715f1ee (patch) | |
| tree | d36fb5b2d55115be81e12edcb1737c1387dcb7fd /llvm/lib | |
| parent | 98e733eaf2af1a5c1d9392e279d21182ffdf560d (diff) | |
| download | llvm-abacc5220e228012b0b86ca2ed540ef1a715f1ee.zip llvm-abacc5220e228012b0b86ca2ed540ef1a715f1ee.tar.gz llvm-abacc5220e228012b0b86ca2ed540ef1a715f1ee.tar.bz2 | |
Fix unused variable warning. NFC.
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp index ed78201..4323635 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp @@ -2678,7 +2678,7 @@ Instruction *InstCombinerImpl::visitBitCast(BitCastInst &CI) { if (DestTy == Src->getType()) return replaceInstUsesWith(CI, Src); - if (FixedVectorType *DestVTy = dyn_cast<FixedVectorType>(DestTy)) { + if (isa<FixedVectorType>(DestTy)) { if (isa<IntegerType>(SrcTy)) { // If this is a cast from an integer to vector, check to see if the input // is a trunc or zext of a bitcast from vector. If so, we can replace all |
