From: Chandler Carruth Date: Tue, 3 Feb 2015 22:43:30 +0000 (+0000) Subject: [x86] Fix signed vs. unsigned comparison. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=2e49ac01a66ad0e7882944ab3024e1cf2d5a4c9a [x86] Fix signed vs. unsigned comparison. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228055 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index c1aa49a8bae..4544b47d8e4 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -7820,7 +7820,7 @@ static SDValue lowerVectorShuffleAsBitShift(SDLoc DL, MVT VT, SDValue V1, SmallBitVector Zeroable = computeZeroableShuffleElements(Mask, V1, V2); int Size = Mask.size(); - assert(Size == VT.getVectorNumElements() && "Unexpected mask size"); + assert(Size == (int)VT.getVectorNumElements() && "Unexpected mask size"); // PSRL : (little-endian) right bit shift. // [ 1, zz, 3, zz]