[llvm-commits] [llvm] r120909 - /llvm/trunk/lib/VMCore/Constants.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Dec 4 06:43:08 PST 2010
Author: d0k
Date: Sat Dec 4 08:43:08 2010
New Revision: 120909
URL: http://llvm.org/viewvc/llvm-project?rev=120909&view=rev
Log:
Apparently APFloat::getZero doesn't like PPCDoubleDoubles.
Modified:
llvm/trunk/lib/VMCore/Constants.cpp
Modified: llvm/trunk/lib/VMCore/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Constants.cpp?rev=120909&r1=120908&r2=120909&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Constants.cpp (original)
+++ llvm/trunk/lib/VMCore/Constants.cpp Sat Dec 4 08:43:08 2010
@@ -58,7 +58,7 @@
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:
More information about the llvm-commits
mailing list