From c912faf38662f8e369f43122dcb709a845b947b2 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 9 Feb 2020 13:35:03 +0000 Subject: [PATCH] Fix signed/unsigned warning. --- 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 d209b1e454a..408e423157b 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -7453,7 +7453,7 @@ static bool getFauxShuffleMask(SDValue N, const APInt &DemandedElts, int NumBytesPerElt = NumBitsPerElt / 8; int Offset = RotateVal / 8; Offset = (X86ISD::VROTLI == Opcode ? NumBytesPerElt - Offset : Offset); - for (int i = 0; i != NumElts; ++i) { + for (int i = 0; i != (int)NumElts; ++i) { int BaseIdx = i * NumBytesPerElt; for (int j = 0; j != NumBytesPerElt; ++j) { Mask.push_back(BaseIdx + ((Offset + j) % NumBytesPerElt));