[llvm] a8bf2de - [CodeGenPrepare] Remove a superflouos variable. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 09:26:22 PDT 2020
Author: Benjamin Kramer
Date: 2020-05-13T18:25:20+02:00
New Revision: a8bf2deae4f1e96857c8869f9931f5adb469e929
URL: https://github.com/llvm/llvm-project/commit/a8bf2deae4f1e96857c8869f9931f5adb469e929
DIFF: https://github.com/llvm/llvm-project/commit/a8bf2deae4f1e96857c8869f9931f5adb469e929.diff
LOG: [CodeGenPrepare] Remove a superflouos variable. NFC.
Fixes a -Wunused-variable warning in Release builds.
Added:
Modified:
llvm/lib/CodeGen/CodeGenPrepare.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 60cc995cefdd..623bf721b19e 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());
More information about the llvm-commits
mailing list