1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Compare to an unsigned literal to avoid a -Wsign-compare warning.

llvm-svn: 272459
This commit is contained in:
Chandler Carruth 2016-06-11 08:02:01 +00:00
parent cf33f93aeb
commit c5dd6b188a

View File

@ -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;
}