mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Remove unneeded zero arrays.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -564,8 +564,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
|
||||
else if (CE->getType()->isDoubleTy())
|
||||
GV.DoubleVal = GV.IntVal.roundToDouble();
|
||||
else if (CE->getType()->isX86_FP80Ty()) {
|
||||
const uint64_t zero[] = {0, 0};
|
||||
APFloat apf = APFloat(APInt(80, 2, zero));
|
||||
APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended);
|
||||
(void)apf.convertFromAPInt(GV.IntVal,
|
||||
false,
|
||||
APFloat::rmNearestTiesToEven);
|
||||
@@ -580,8 +579,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
|
||||
else if (CE->getType()->isDoubleTy())
|
||||
GV.DoubleVal = GV.IntVal.signedRoundToDouble();
|
||||
else if (CE->getType()->isX86_FP80Ty()) {
|
||||
const uint64_t zero[] = { 0, 0};
|
||||
APFloat apf = APFloat(APInt(80, 2, zero));
|
||||
APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended);
|
||||
(void)apf.convertFromAPInt(GV.IntVal,
|
||||
true,
|
||||
APFloat::rmNearestTiesToEven);
|
||||
|
||||
Reference in New Issue
Block a user