diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-04 15:28:22 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-04 15:28:22 +0000 |
| commit | 31920b0a2a04fbdf3d85f7ddbe55de6928437c56 (patch) | |
| tree | 38c97528505a6f6f50043efe5c4e17acd772c964 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
| parent | 6f88fcb16bceb60e7b2b6a7f375f2c2140de14bc (diff) | |
| download | llvm-31920b0a2a04fbdf3d85f7ddbe55de6928437c56.zip llvm-31920b0a2a04fbdf3d85f7ddbe55de6928437c56.tar.gz llvm-31920b0a2a04fbdf3d85f7ddbe55de6928437c56.tar.bz2 | |
Remove unneeded zero arrays.
llvm-svn: 120910
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 7f21e650..f286975 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -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); |
