From ec6be4a782100fe817227f9abe525703a6de1b0a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 29 Feb 2008 01:41:59 +0000 Subject: Use the new APInt-enabled form of getConstant instead of converting an APInt into a uint64_t to call getConstant. llvm-svn: 47742 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 86abd4194fd..016bb105846 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -996,7 +996,7 @@ SDOperand SelectionDAGLowering::getValue(const Value *V) { Ops.size()); } else { // Canonicalize all constant ints to be unsigned. - return N = DAG.getConstant(cast(C)->getZExtValue(),VT); + return N = DAG.getConstant(cast(C)->getValue(),VT); } } -- cgit v1.2.3