[llvm] r211782 - Silence a warning due to a comparison between signed and unsigned.
Andrea Di Biagio
Andrea_DiBiagio at sn.scee.net
Thu Jun 26 06:41:11 PDT 2014
Author: adibiagio
Date: Thu Jun 26 08:41:10 2014
New Revision: 211782
URL: http://llvm.org/viewvc/llvm-project?rev=211782&view=rev
Log:
Silence a warning due to a comparison between signed and unsigned.
No functional change intended.
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=211782&r1=211781&r2=211782&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Jun 26 08:41:10 2014
@@ -18046,7 +18046,7 @@ static SDValue PerformShuffleCombine(SDN
bool CanFold = true;
for (unsigned i = 0, e = NumElts; i != e && CanFold; ++i)
- CanFold = Mask[i] == (i & 1) ? i + NumElts : i;
+ CanFold = Mask[i] == (int)((i & 1) ? i + NumElts : i);
if (CanFold) {
SDValue Op0 = N1->getOperand(0);
More information about the llvm-commits
mailing list