OSDN Git Service

[NFC] Silence gcc warning (-Wsign-compare)
authorFilipe Cabecinhas <me@filcab.net>
Mon, 6 Jun 2016 10:49:56 +0000 (10:49 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Mon, 6 Jun 2016 10:49:56 +0000 (10:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271882 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/Utils/X86ShuffleDecode.cpp

index 4ec4b78..899080a 100644 (file)
@@ -528,7 +528,7 @@ void DecodeVPERMIL2PMask(MVT VT, unsigned M2Z, ArrayRef<uint64_t> RawMask,
     // Bits[2:1] - (Per Lane) PD Shuffle Mask.
     // Bits[2:0] - (Per Lane) PS Shuffle Mask.
     uint64_t Selector = RawMask[i];
-    int MatchBit = (Selector >> 3) & 0x1;
+    unsigned MatchBit = (Selector >> 3) & 0x1;
 
     // M2Z[0:1]     MatchBit
     //   0Xb           X        Source selected by Selector index.