diff options
author | Dale Johannesen <dalej@apple.com> | 2008-04-20 01:34:03 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-04-20 01:34:03 +0000 |
commit | 79f82f9fd5dd5bceaf2a3b1c0426b3e7f40b6474 (patch) | |
tree | d255d50237888569c56ae95dc039a9b71ec49124 /lib/Support | |
parent | d8eb63fc7231363ecbfe3c6ea41a2e30be02682b (diff) | |
download | external_llvm-79f82f9fd5dd5bceaf2a3b1c0426b3e7f40b6474.zip external_llvm-79f82f9fd5dd5bceaf2a3b1c0426b3e7f40b6474.tar.gz external_llvm-79f82f9fd5dd5bceaf2a3b1c0426b3e7f40b6474.tar.bz2 |
Check that APFloat::convert is not trying to target
ppc long double, which doesn't work.
This may break some stuff temporarily, but I want to
avoid the propagation of code that assumes this works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APFloat.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 8ecfa35..35de714 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -1678,6 +1678,7 @@ APFloat::convert(const fltSemantics &toSemantics, opStatus fs; assertArithmeticOK(*semantics); + assertArithmeticOK(toSemantics); lostFraction = lfExactlyZero; newPartCount = partCountForBits(toSemantics.precision + 1); oldPartCount = partCount(); |