[llvm-commits] [llvm] r166494 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Matt Beaumont-Gay
matthewbg at google.com
Tue Oct 23 12:46:36 PDT 2012
Author: matthewbg
Date: Tue Oct 23 14:46:36 2012
New Revision: 166494
URL: http://llvm.org/viewvc/llvm-project?rev=166494&view=rev
Log:
Silence -Wsign-compare
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=166494&r1=166493&r2=166494&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Oct 23 14:46:36 2012
@@ -6610,7 +6610,7 @@
int EltIdx = SVOp->getMaskElt(i);
if ((i & Mask) != 0 && EltIdx != -1)
return SDValue();
- if ((i & Mask) == 0 && EltIdx != (i >> Shift))
+ if ((i & Mask) == 0 && (unsigned)EltIdx != (i >> Shift))
return SDValue();
}
More information about the llvm-commits
mailing list