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:
parent
2b8022a8c6
commit
43f51f5cb2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user