From: Dan Gohman Date: Fri, 29 Feb 2008 01:41:59 +0000 (+0000) Subject: Use the new APInt-enabled form of getConstant instead of converting X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c6f9a06238daebd41620ccc795f289c607393f00;p=oota-llvm.git Use the new APInt-enabled form of getConstant instead of converting an APInt into a uint64_t to call getConstant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47742 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 86abd4194fd..016bb105846 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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); } }