diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2016-06-11 08:02:01 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2016-06-11 08:02:01 +0000 |
| commit | 306e270b83a238eb66ed302b9530d1e48a41017a (patch) | |
| tree | d5647a06fb18cae0c824cfbb64c794921b2968b3 /llvm/lib/Target | |
| parent | 3ecbd9d2876867795bf5a0ba7710869bee3a6040 (diff) | |
| download | bcm5719-llvm-306e270b83a238eb66ed302b9530d1e48a41017a.tar.gz bcm5719-llvm-306e270b83a238eb66ed302b9530d1e48a41017a.zip | |
Compare to an unsigned literal to avoid a -Wsign-compare warning.
llvm-svn: 272459
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp index f4a3461e971..a0b64e75583 100644 --- a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp +++ b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp @@ -207,7 +207,7 @@ void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize, // 10b 1 Zero. // 11b 0 Zero. // 11b 1 Source selected by Selector index. - if ((M2Z & 0x2) != 0 && MatchBit != (M2Z & 0x1)) { + if ((M2Z & 0x2) != 0u && MatchBit != (M2Z & 0x1)) { ShuffleMask.push_back(SM_SentinelZero); continue; } |

