Skip to content

Commit 5a5502b

Browse files
authored
[SLP] NFC. Use Value instead of template. (llvm#115440)
1 parent 274feef commit 5a5502b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static bool isValidElementType(Type *Ty) {
239239
/// returns the type of its value operand, for Cmp - the types of the compare
240240
/// operands and for insertelement - the type os the inserted operand.
241241
/// Otherwise, just the type of the value is returned.
242-
template <typename T> static Type *getValueType(T *V) {
242+
static Type *getValueType(Value *V) {
243243
if (auto *SI = dyn_cast<StoreInst>(V))
244244
return SI->getValueOperand()->getType();
245245
if (auto *CI = dyn_cast<CmpInst>(V))

0 commit comments

Comments
 (0)