From: Ted Kremenek Date: Thu, 8 Apr 2010 18:49:30 +0000 (+0000) Subject: Fix -Wsign-compare warning (issued by clang++). X-Git-Tag: android-x86-6.0-r1~1003^2~7570 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d0e88f3596fb214fd26bf91c481d87ffe499d992;p=android-x86%2Fexternal-llvm.git Fix -Wsign-compare warning (issued by clang++). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100799 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5d3a6c3cec6..01bd2e84d15 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -5552,7 +5552,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) { InVec = InVec.getOperand(0); if (ISD::isNormalLoad(InVec.getNode())) { LN0 = cast(InVec); - Elt = (Idx < (int)NumElems) ? Idx : Idx - NumElems; + Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems; } }