From 3e01c6e81f071939f2f0d0e387d367b528260fd8 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 11 Jun 2016 08:02:01 +0000 Subject: [PATCH] Compare to an unsigned literal to avoid a -Wsign-compare warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272459 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ShuffleDecodeConstantPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp b/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp index f4a3461e971..a0b64e75583 100644 --- a/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp +++ b/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; } -- 2.50.1