Apparently APFloat::getZero doesn't like PPCDoubleDoubles.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 4 Dec 2010 14:43:08 +0000 (14:43 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 4 Dec 2010 14:43:08 +0000 (14:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120909 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index ab9592f728a793a3df9dcd57654c4d802aa323d5..29fc0dbdf8d6818ab9fbaa11d24f33c4f17743af 100644 (file)
@@ -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: