From aa47088124c136d3a9faa75d2c535256666ed67e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 4 Jul 2017 17:42:01 +0000 Subject: [PATCH] Fix signed/unsigned comparison warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307098 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/Utils/X86ShuffleDecode.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/Utils/X86ShuffleDecode.cpp b/lib/Target/X86/Utils/X86ShuffleDecode.cpp index de7914360fd..8a0fbfb45b2 100644 --- a/lib/Target/X86/Utils/X86ShuffleDecode.cpp +++ b/lib/Target/X86/Utils/X86ShuffleDecode.cpp @@ -486,9 +486,9 @@ void DecodeEXTRQIMask(MVT VT, int Len, int Idx, // elements of the lower 64-bits. The upper 64-bits are undefined. for (int i = 0; i != Len; ++i) ShuffleMask.push_back(i + Idx); - for (int i = Len; i != HalfElts; ++i) + for (int i = Len; i != (int)HalfElts; ++i) ShuffleMask.push_back(SM_SentinelZero); - for (int i = HalfElts; i != NumElts; ++i) + for (int i = HalfElts; i != (int)NumElts; ++i) ShuffleMask.push_back(SM_SentinelUndef); } @@ -529,9 +529,9 @@ void DecodeINSERTQIMask(MVT VT, int Len, int Idx, ShuffleMask.push_back(i); for (int i = 0; i != Len; ++i) ShuffleMask.push_back(i + NumElts); - for (int i = Idx + Len; i != HalfElts; ++i) + for (int i = Idx + Len; i != (int)HalfElts; ++i) ShuffleMask.push_back(i); - for (int i = HalfElts; i != NumElts; ++i) + for (int i = HalfElts; i != (int)NumElts; ++i) ShuffleMask.push_back(SM_SentinelUndef); } -- 2.11.0