From 5ff0a24f6e41eb6e35ea44a79c9d70fbc791a2bb Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 18 Feb 2017 22:40:58 +0000 Subject: [PATCH] [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 --- lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1