commit | c6f9a06238daebd41620ccc795f289c607393f00 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Feb 29 01:41:59 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Feb 29 01:41:59 2008 +0000 |
tree | 6543a7324d53e6da24d046c5b2ad9ecf55b00c83 | |
parent | cf609575ef6e47cd5ce775af175c67a3b621120e [diff] [blame] |
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 86abd41..016bb10 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -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); } }