[CodeGenPrepare] Remove a superflouos variable. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 13 May 2020 16:25:20 +0000 (18:25 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 13 May 2020 16:25:20 +0000 (18:25 +0200)
Fixes a -Wunused-variable warning in Release builds.

llvm/lib/CodeGen/CodeGenPrepare.cpp

index 60cc995..623bf72 100644 (file)
@@ -6486,9 +6486,8 @@ bool CodeGenPrepare::convertSplatType(ShuffleVectorInst *SVI) {
     return false;
 
   VectorType *SVIVecType = cast<VectorType>(SVI->getType());
-  Type *SVIType = SVIVecType->getScalarType();
   assert(!NewType->isVectorTy() && "Expected a scalar type!");
-  assert(NewType->getScalarSizeInBits() == SVIType->getScalarSizeInBits() &&
+  assert(NewType->getScalarSizeInBits() == SVIVecType->getScalarSizeInBits() &&
          "Expected a type of the same size!");
   Type *NewVecType = VectorType::get(NewType, SVIVecType->getNumElements());