aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-04-28 19:46:58 +0000
committerDale Johannesen <dalej@apple.com>2008-04-28 19:46:58 +0000
commite611b59c705ca8160bd77a8d9af3e4e8d7c10d9e (patch)
tree0f337d718aca43b07f33acd1973dabf42ae47a77 /include/llvm
parent5b37f9d6ad40098a7b3cf8308092cc64919ac9e4 (diff)
downloadexternal_llvm-e611b59c705ca8160bd77a8d9af3e4e8d7c10d9e.zip
external_llvm-e611b59c705ca8160bd77a8d9af3e4e8d7c10d9e.tar.gz
external_llvm-e611b59c705ca8160bd77a8d9af3e4e8d7c10d9e.tar.bz2
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
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Constants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index d6529c7..3289889 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);