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 | 3069cbf7b3ef9a31bbb8e434686b7259052c364a (patch) | |
tree | 8b7c75c99aa3041ff2f185ea10b5b31fa77ca52c /lib/ExecutionEngine | |
parent | 299ee184f4ede4fabe49e8386838b5dab1e1a80a (diff) | |
download | external_llvm-3069cbf7b3ef9a31bbb8e434686b7259052c364a.zip external_llvm-3069cbf7b3ef9a31bbb8e434686b7259052c364a.tar.gz external_llvm-3069cbf7b3ef9a31bbb8e434686b7259052c364a.tar.bz2 |
Remove unneeded zero arrays.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 7f21e65..f286975 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/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); |