We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274feef commit 5a5502bCopy full SHA for 5a5502b
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -239,7 +239,7 @@ static bool isValidElementType(Type *Ty) {
239
/// returns the type of its value operand, for Cmp - the types of the compare
240
/// operands and for insertelement - the type os the inserted operand.
241
/// Otherwise, just the type of the value is returned.
242
-template <typename T> static Type *getValueType(T *V) {
+static Type *getValueType(Value *V) {
243
if (auto *SI = dyn_cast<StoreInst>(V))
244
return SI->getValueOperand()->getType();
245
if (auto *CI = dyn_cast<CmpInst>(V))
0 commit comments