[llvm-commits] [llvm] r50371 - /llvm/branches/Apple/Tak/include/llvm/Constants.h

Bill Wendling isanbard at gmail.com
Mon Apr 28 12:57:12 PDT 2008


Author: void
Date: Mon Apr 28 14:57:12 2008
New Revision: 50371

URL: http://llvm.org/viewvc/llvm-project?rev=50371&view=rev
Log:
Porting r50369 to Tak.

Modified:
    llvm/branches/Apple/Tak/include/llvm/Constants.h

Modified: llvm/branches/Apple/Tak/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Tak/include/llvm/Constants.h?rev=50371&r1=50370&r2=50371&view=diff

==============================================================================
--- llvm/branches/Apple/Tak/include/llvm/Constants.h (original)
+++ llvm/branches/Apple/Tak/include/llvm/Constants.h Mon Apr 28 14:57:12 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