diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index b2f677fb84f98..d9437af7641e9 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -239,7 +239,7 @@ static bool isValidElementType(Type *Ty) { /// returns the type of its value operand, for Cmp - the types of the compare /// operands and for insertelement - the type os the inserted operand. /// Otherwise, just the type of the value is returned. -template static Type *getValueType(T *V) { +static Type *getValueType(Value *V) { if (auto *SI = dyn_cast(V)) return SI->getValueOperand()->getType(); if (auto *CI = dyn_cast(V))