Fix -Wsign-compare warning (issued by clang++).

llvm-svn: 100799
This commit is contained in:
Ted Kremenek 2010-04-08 18:49:30 +00:00
parent 98bc4371c7
commit d87bd77586
1 changed files with 1 additions and 1 deletions

View File

@ -5552,7 +5552,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
InVec = InVec.getOperand(0);
if (ISD::isNormalLoad(InVec.getNode())) {
LN0 = cast<LoadSDNode>(InVec);
Elt = (Idx < (int)NumElems) ? Idx : Idx - NumElems;
Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems;
}
}