From beb5be03320f9bbe6a4a92b0c7e1e0ebf3ef865d Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Mon, 28 Apr 2008 19:46:58 +0000 Subject: [PATCH] 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 --- include/llvm/Constants.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index d6529c7d5ff..32898894c57 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -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); -- 2.34.1