summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-06-11 09:13:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-06-11 09:13:00 +0000
commit4c0e94dce620ebdcdc6f346b83372dad35a900a1 (patch)
treea1c5f6a548ab64eac8aac6202e89816e07b9768a /llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
parentef6ae7030dc9201597af59579854d0d04d4fa7b6 (diff)
downloadbcm5719-llvm-4c0e94dce620ebdcdc6f346b83372dad35a900a1.tar.gz
bcm5719-llvm-4c0e94dce620ebdcdc6f346b83372dad35a900a1.zip
Try a bit harder to remove the signed and unsigned comparison warning.
Hopefully this time it actually works and stays away. llvm-svn: 272463
Diffstat (limited to 'llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
index a0b64e75583..856a2bc6a12 100644
--- a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
+++ b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
@@ -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.
OpenPOWER on IntegriCloud