diff options
| author | Dan Gohman <gohman@apple.com> | 2008-02-29 01:41:59 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-02-29 01:41:59 +0000 |
| commit | ec6be4a782100fe817227f9abe525703a6de1b0a (patch) | |
| tree | 9df1a7e32ee6a4bcc985a687ff188d5532df91af /llvm/lib/CodeGen | |
| parent | 105c1d4106330d123eeb19a37ce2310eeb8718f5 (diff) | |
| download | bcm5719-llvm-ec6be4a782100fe817227f9abe525703a6de1b0a.tar.gz bcm5719-llvm-ec6be4a782100fe817227f9abe525703a6de1b0a.zip | |
Use the new APInt-enabled form of getConstant instead of converting
an APInt into a uint64_t to call getConstant.
llvm-svn: 47742
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ConstantInt>(C)->getZExtValue(),VT); + return N = DAG.getConstant(cast<ConstantInt>(C)->getValue(),VT); } } |

