1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Use the new APInt-enabled form of getConstant instead of converting

an APInt into a uint64_t to call getConstant.

llvm-svn: 47742
This commit is contained in:
Dan Gohman 2008-02-29 01:41:59 +00:00
parent 2b8022a8c6
commit 43f51f5cb2

View File

@ -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);
}
}