[llvm] r346657 - Fix unused variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 12 06:48:39 PST 2018
Author: rksimon
Date: Mon Nov 12 06:48:39 2018
New Revision: 346657
URL: http://llvm.org/viewvc/llvm-project?rev=346657&view=rev
Log:
Fix unused variable warning. NFCI.
Modified:
llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
Modified: llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h?rev=346657&r1=346656&r2=346657&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h (original)
+++ llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h Mon Nov 12 06:48:39 2018
@@ -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;
More information about the llvm-commits
mailing list