[llvm] r283041 - Fix signed/unsigned warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 1 09:14:58 PDT 2016
Author: rksimon
Date: Sat Oct 1 11:14:57 2016
New Revision: 283041
URL: http://llvm.org/viewvc/llvm-project?rev=283041&view=rev
Log:
Fix signed/unsigned warning
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=283041&r1=283040&r2=283041&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Oct 1 11:14:57 2016
@@ -25201,13 +25201,13 @@ static bool matchBinaryPermuteVectorShuf
// Attempt to match as a binary blend.
if (NumMaskElts <= BlendVT.getVectorNumElements()) {
bool MatchBlend = true;
- for (int i = 0; i != NumMaskElts; ++i) {
+ for (int i = 0; i != (int)NumMaskElts; ++i) {
int M = Mask[i];
if (M == SM_SentinelUndef)
continue;
else if (M == SM_SentinelZero)
MatchBlend = false;
- else if ((M != i) && (M != (i + NumMaskElts)))
+ else if ((M != i) && (M != (i + (int)NumMaskElts)))
MatchBlend = false;
}
More information about the llvm-commits
mailing list