[llvm-commits] [llvm] r47742 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Dan Gohman gohman at apple.com
Thu Feb 28 17:41:59 PST 2008


Author: djg
Date: Thu Feb 28 19:41:59 2008
New Revision: 47742

URL: http://llvm.org/viewvc/llvm-project?rev=47742&view=rev
Log:
Use the new APInt-enabled form of getConstant instead of converting
an APInt into a uint64_t to call getConstant.

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

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

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu Feb 28 19:41:59 2008
@@ -996,7 +996,7 @@
                                       Ops.size());
     } else {
       // Canonicalize all constant ints to be unsigned.
-      return N = DAG.getConstant(cast<ConstantInt>(C)->getZExtValue(),VT);
+      return N = DAG.getConstant(cast<ConstantInt>(C)->getValue(),VT);
     }
   }
       





More information about the llvm-commits mailing list