[llvm-commits] [llvm] r50369 - /llvm/trunk/include/llvm/Constants.h

Dale Johannesen dalej at apple.com
Mon Apr 28 12:46:58 PDT 2008


Author: johannes
Date: Mon Apr 28 14:46:58 2008
New Revision: 50369

URL: http://llvm.org/viewvc/llvm-project?rev=50369&view=rev
Log:
Don't try to convert PPC long double.


Modified:
    llvm/trunk/include/llvm/Constants.h

Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=50369&r1=50368&r2=50369&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Mon Apr 28 14:46:58 2008
@@ -263,6 +263,9 @@
   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);





More information about the llvm-commits mailing list