mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Use the new APInt-enabled form of getConstant instead of converting
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
This commit is contained in:
parent
cf609575ef
commit
c6f9a06238
@ -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…
x
Reference in New Issue
Block a user