commit | d0e88f3596fb214fd26bf91c481d87ffe499d992 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Apr 08 18:49:30 2010 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Apr 08 18:49:30 2010 +0000 |
tree | 0bafcc26ce9da2a921e4fe8e6864d084a50d1929 | |
parent | 113902e9fba5f4baf3de3c6ac0241d49ffdfa55c [diff] [blame] |
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 5d3a6c3..01bd2e8 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5552,7 +5552,7 @@ 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; } }