[llvm-commits] [llvm] r60016 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Bill Wendling isanbard at gmail.com
Tue Nov 25 00:19:22 PST 2008


Author: void
Date: Tue Nov 25 02:19:22 2008
New Revision: 60016

URL: http://llvm.org/viewvc/llvm-project?rev=60016&view=rev
Log:
Now with the correct type for the 0.

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=60016&r1=60015&r2=60016&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Nov 25 02:19:22 2008
@@ -4185,7 +4185,7 @@
       SDValue Sum = DAG.getNode(ISD::ADD, LHS.getValueType(), LHS, RHS);
       MVT OType = Node->getValueType(1);
 
-      SDValue Zero = DAG.getConstant(0, OType);
+      SDValue Zero = DAG.getConstant(0, LHS.getValueType());
 
       SDValue LHSPos = DAG.getSetCC(OType, LHS, Zero, ISD::SETGE);
       SDValue RHSPos = DAG.getSetCC(OType, RHS, Zero, ISD::SETGE);





More information about the llvm-commits mailing list