projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf60957
)
Use the new APInt-enabled form of getConstant instead of converting
author
Dan Gohman
<gohman@apple.com>
Fri, 29 Feb 2008 01:41:59 +0000
(
01:41
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 29 Feb 2008 01:41:59 +0000
(
01:41
+0000)
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
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 86abd4194fd7a83f3c230e79a708ed4d6c621161..016bb1058464b243df950568ae3c03ee9996ad9a 100644
(file)
--- 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<ConstantInt>(C)->get
ZExt
Value(),VT);
+ return N = DAG.getConstant(cast<ConstantInt>(C)->getValue(),VT);
}
}