aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-01-21 20:32:55 +0000
committerDale Johannesen <dalej@apple.com>2009-01-21 20:32:55 +0000
commitc6858814e070857f406f20d3fd92240c1326948d (patch)
treec375538be19d22248ae0381a2ad38889c37fee8d /lib/Support/APFloat.cpp
parent5b51c24091f65512746abd7b99d3adcf8e5a4255 (diff)
downloadexternal_llvm-c6858814e070857f406f20d3fd92240c1326948d.zip
external_llvm-c6858814e070857f406f20d3fd92240c1326948d.tar.gz
external_llvm-c6858814e070857f406f20d3fd92240c1326948d.tar.bz2
Do not use host floating point types when emitting
ASCII IR; loading and storing these can change the bits of NaNs on some hosts. Remove or add warnings at a few other places using host floating point; this is a bad thing to do in general. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r--lib/Support/APFloat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index c296770..d8d414d 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -599,7 +599,8 @@ APFloat::copySignificand(const APFloat &rhs)
}
/* Make this number a NaN, with an arbitrary but deterministic value
- for the significand. */
+ for the significand. If double or longer, this is a signalling NaN,
+ which may not be ideal. */
void
APFloat::makeNaN(void)
{