Quellcode durchsuchen

Fix -Wsign-compare warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346515 91177308-0d34-0410-b5e6-96231b3b80d8
Fangrui Song vor 6 Jahren
Ursprung
Commit
b9e113385e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      lib/IR/Instructions.cpp

+ 1 - 1
lib/IR/Instructions.cpp

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