From: Simon Pilgrim Date: Sat, 18 Feb 2017 22:40:58 +0000 (+0000) Subject: [X86] Fix enumeral/non-enumeral comparison warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ff0a24f6e41eb6e35ea44a79c9d70fbc791a2bb;p=llvm [X86] Fix enumeral/non-enumeral comparison warning. gcc only allows you to mix enums / ints if they have the same signedness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295576 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 2a3179709c9..5f4568e1a91 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5738,7 +5738,7 @@ static bool getFauxShuffleMask(SDValue N, SmallVectorImpl &Mask, // Attempt to recognise a PINSR*(VEC, 0, Idx) shuffle pattern. if (X86::isZeroNode(InScl)) { Ops.push_back(InVec); - for (unsigned i = 0; i != NumElts; ++i) + for (int i = 0; i != (int)NumElts; ++i) Mask.push_back(i == InIdx ? SM_SentinelZero : i); return true; }