summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-04-20 01:34:03 +0000
committerDale Johannesen <dalej@apple.com>2008-04-20 01:34:03 +0000
commit64bbdb17f5bb711bff632b219361690a1dde2215 (patch)
treea842936b00ce302fb4d17c0672f7c88b859cc66f /llvm/lib/Support
parent076d13387d63e347cdd2d5e55073d4ef5fb0be4a (diff)
downloadbcm5719-llvm-64bbdb17f5bb711bff632b219361690a1dde2215.tar.gz
bcm5719-llvm-64bbdb17f5bb711bff632b219361690a1dde2215.zip
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. llvm-svn: 49983
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/APFloat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index 8ecfa3544a9..35de71497a9 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud