projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
113902e
)
Fix -Wsign-compare warning (issued by clang++).
author
Ted Kremenek
<kremenek@apple.com>
Thu, 8 Apr 2010 18:49:30 +0000
(18:49 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Thu, 8 Apr 2010 18:49:30 +0000
(18:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100799
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 5d3a6c3cec6049164d68780795049c595892df85..01bd2e84d155baa731f32d754237bed410b6d34b 100644
(file)
--- 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<LoadSDNode>(InVec);
- Elt = (Idx < (int)NumElems) ? Idx : Idx - NumElems;
+ Elt = (Idx < (int)NumElems) ? Idx : Idx -
(int)
NumElems;
}
}