Silence -Wsign-compare

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Beaumont-Gay 2012-10-23 19:46:36 +00:00
parent 2430973fb6
commit a999de00e7

View File

@ -6610,7 +6610,7 @@ X86TargetLowering::lowerVectorIntExtend(SDValue Op, SelectionDAG &DAG) const {
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();
}