diff options
| author | Ted Kremenek <kremenek@apple.com> | 2010-04-08 18:49:30 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2010-04-08 18:49:30 +0000 |
| commit | d87bd77586b85ce6f6578d20ac76c3c1ec2fa916 (patch) | |
| tree | 205edd1602552aabfeb9c71fd4e6f37fe853d74d /llvm | |
| parent | 98bc4371c72a52defde84b9993a60e88e21ed968 (diff) | |
| download | bcm5719-llvm-d87bd77586b85ce6f6578d20ac76c3c1ec2fa916.tar.gz bcm5719-llvm-d87bd77586b85ce6f6578d20ac76c3c1ec2fa916.zip | |
Fix -Wsign-compare warning (issued by clang++).
llvm-svn: 100799
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5d3a6c3cec6..01bd2e84d15 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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<LoadSDNode>(InVec); - Elt = (Idx < (int)NumElems) ? Idx : Idx - NumElems; + Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems; } } |

