[CodeGenPrepare] Remove a superflouos variable. NFC.

Fixes a -Wunused-variable warning in Release builds.
This commit is contained in:
Benjamin Kramer 2020-05-13 18:25:20 +02:00
parent 6671a81bc7
commit a8bf2deae4
1 changed files with 1 additions and 2 deletions

View 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());