diff options
author | Dale Johannesen <dalej@apple.com> | 2008-04-28 19:46:58 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-04-28 19:46:58 +0000 |
commit | e611b59c705ca8160bd77a8d9af3e4e8d7c10d9e (patch) | |
tree | 0f337d718aca43b07f33acd1973dabf42ae47a77 /include/llvm | |
parent | 5b37f9d6ad40098a7b3cf8308092cc64919ac9e4 (diff) | |
download | external_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.h | 3 |
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); |