summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-08 18:49:30 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-08 18:49:30 +0000
commitd87bd77586b85ce6f6578d20ac76c3c1ec2fa916 (patch)
tree205edd1602552aabfeb9c71fd4e6f37fe853d74d /llvm/lib/CodeGen/SelectionDAG
parent98bc4371c72a52defde84b9993a60e88e21ed968 (diff)
downloadbcm5719-llvm-d87bd77586b85ce6f6578d20ac76c3c1ec2fa916.tar.gz
bcm5719-llvm-d87bd77586b85ce6f6578d20ac76c3c1ec2fa916.zip
Fix -Wsign-compare warning (issued by clang++).
llvm-svn: 100799
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
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;
}
}
OpenPOWER on IntegriCloud