[x86] Fix signed vs. unsigned comparison.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 3 Feb 2015 22:43:30 +0000 (22:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 3 Feb 2015 22:43:30 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228055 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index c1aa49a8baeceb8c9d55a797fd772742328ba038..4544b47d8e420e35b146b94b5aea614dc437e55f 100644 (file)
@@ -7820,7 +7820,7 @@ static SDValue lowerVectorShuffleAsBitShift(SDLoc DL, MVT VT, SDValue V1,
   SmallBitVector Zeroable = computeZeroableShuffleElements(Mask, V1, V2);
 
   int Size = Mask.size();
   SmallBitVector Zeroable = computeZeroableShuffleElements(Mask, V1, V2);
 
   int Size = Mask.size();
-  assert(Size == VT.getVectorNumElements() && "Unexpected mask size");
+  assert(Size == (int)VT.getVectorNumElements() && "Unexpected mask size");
 
   // PSRL : (little-endian) right bit shift.
   // [  1, zz,  3, zz]
 
   // PSRL : (little-endian) right bit shift.
   // [  1, zz,  3, zz]