aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-04 14:43:08 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-04 14:43:08 +0000
commit299ee184f4ede4fabe49e8386838b5dab1e1a80a (patch)
tree310a03f6fea84990004bf697deffea962b4a6e6b /lib/VMCore
parentb361452ef9ad9453b2874cd12fc9ee65085d1f57 (diff)
downloadexternal_llvm-299ee184f4ede4fabe49e8386838b5dab1e1a80a.zip
external_llvm-299ee184f4ede4fabe49e8386838b5dab1e1a80a.tar.gz
external_llvm-299ee184f4ede4fabe49e8386838b5dab1e1a80a.tar.bz2
Apparently APFloat::getZero doesn't like PPCDoubleDoubles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index ab9592f..29fc0db 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -58,7 +58,7 @@ Constant *Constant::getNullValue(const Type *Ty) {
APFloat::getZero(APFloat::IEEEquad));
case Type::PPC_FP128TyID:
return ConstantFP::get(Ty->getContext(),
- APFloat::getZero(APFloat::PPCDoubleDouble));
+ APFloat(APInt::getNullValue(128)));
case Type::PointerTyID:
return ConstantPointerNull::get(cast<PointerType>(Ty));
case Type::StructTyID: