Fix unused variable warning. NFCI.

llvm-svn: 346657
This commit is contained in:
Simon Pilgrim 2018-11-12 14:48:39 +00:00
parent 631f2bf51e
commit ab74ab2184
1 changed files with 1 additions and 2 deletions

View File

@ -123,9 +123,8 @@ private:
unsigned getExtractSubvectorOverhead(Type *Ty, int Index, Type *SubTy) {
assert(Ty && Ty->isVectorTy() && SubTy && SubTy->isVectorTy() &&
"Can only extract subvectors from vectors");
int NumElts = Ty->getVectorNumElements();
int NumSubElts = SubTy->getVectorNumElements();
assert((Index + NumSubElts) <= NumElts &&
assert((Index + NumSubElts) <= (int)Ty->getVectorNumElements() &&
"SK_ExtractSubvector index out of range");
unsigned Cost = 0;