[llvm-commits] [llvm] r100799 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Ted Kremenek kremenek at apple.com
Thu Apr 8 11:49:31 PDT 2010


Author: kremenek
Date: Thu Apr  8 13:49:30 2010
New Revision: 100799

URL: http://llvm.org/viewvc/llvm-project?rev=100799&view=rev
Log:
Fix -Wsign-compare warning (issued by clang++).

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=100799&r1=100798&r2=100799&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Apr  8 13:49:30 2010
@@ -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;
       }
     }
 





More information about the llvm-commits mailing list