Fix -Wsign-compare warning

llvm-svn: 346515
This commit is contained in:
Fangrui Song 2018-11-09 16:45:37 +00:00
parent a32a4e3b54
commit cb661fa4de

View File

@ -1805,7 +1805,7 @@ bool ShuffleVectorInst::isExtractSubvectorMask(ArrayRef<int> Mask,
return false;
// Must be smaller (else this is an Identity shuffle).
if (NumSrcElts <= Mask.size())
if (NumSrcElts <= (int)Mask.size())
return false;
// Find start of extraction, accounting that we may start with an UNDEF.