]> granicus.if.org Git - llvm/commitdiff
Try a bit harder to remove the signed and unsigned comparison warning.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 11 Jun 2016 09:13:00 +0000 (09:13 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 11 Jun 2016 09:13:00 +0000 (09:13 +0000)
Hopefully this time it actually works and stays away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272463 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ShuffleDecodeConstantPool.cpp

index a0b64e755837c81c5032f3d596cd5393d63f77b8..856a2bc6a12b5cf633867647dd0bb7f09201f92f 100644 (file)
@@ -199,7 +199,7 @@ void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize,
     // Bits[2:1] - (Per Lane) PD Shuffle Mask.
     // Bits[2:0] - (Per Lane) PS Shuffle Mask.
     uint64_t Selector = cast<ConstantInt>(COp)->getZExtValue();
-    int MatchBit = (Selector >> 3) & 0x1;
+    unsigned MatchBit = (Selector >> 3) & 0x1;
 
     // M2Z[0:1]     MatchBit
     //   0Xb           X        Source selected by Selector index.