Don't try to convert PPC long double.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2008-04-28 19:46:58 +00:00
parent 187db7b950
commit beb5be0332

View File

@ -263,6 +263,9 @@ public:
bool isExactlyValue(const APFloat& V) const;
bool isExactlyValue(double V) const {
// convert is not supported on this type
if (&Val.getSemantics() == &APFloat::PPCDoubleDouble)
return false;
APFloat FV(V);
FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven);
return isExactlyValue(FV);