summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-29 01:41:59 +0000
committerDan Gohman <gohman@apple.com>2008-02-29 01:41:59 +0000
commitec6be4a782100fe817227f9abe525703a6de1b0a (patch)
tree9df1a7e32ee6a4bcc985a687ff188d5532df91af /llvm/lib/CodeGen
parent105c1d4106330d123eeb19a37ce2310eeb8718f5 (diff)
downloadbcm5719-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.cpp2
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);
}
}
OpenPOWER on IntegriCloud