From: Benjamin Kramer Date: Sat, 4 Dec 2010 14:43:08 +0000 (+0000) Subject: Apparently APFloat::getZero doesn't like PPCDoubleDoubles. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=299ee184f4ede4fabe49e8386838b5dab1e1a80a;p=oota-llvm.git Apparently APFloat::getZero doesn't like PPCDoubleDoubles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120909 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index ab9592f728a..29fc0dbdf8d 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(Ty)); case Type::StructTyID: