aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-05-13 18:25:20 +0200
committerBenjamin Kramer <benny.kra@googlemail.com>2020-05-13 18:25:20 +0200
commita8bf2deae4f1e96857c8869f9931f5adb469e929 (patch)
treee2775098c4e5ed12f2090e56f1338d6ed8ab6ae4 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent6671a81bc71cc2635c5a10d6f688fea46ca4e5d6 (diff)
downloadllvm-a8bf2deae4f1e96857c8869f9931f5adb469e929.zip
llvm-a8bf2deae4f1e96857c8869f9931f5adb469e929.tar.gz
llvm-a8bf2deae4f1e96857c8869f9931f5adb469e929.tar.bz2
[CodeGenPrepare] Remove a superflouos variable. NFC.
Fixes a -Wunused-variable warning in Release builds.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 60cc995..623bf72 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -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());