diff options
author | Dale Johannesen <dalej@apple.com> | 2009-01-21 20:32:55 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-01-21 20:32:55 +0000 |
commit | 541ed9fd02ea48d2739f4a9dd681ba2d5da26886 (patch) | |
tree | c375538be19d22248ae0381a2ad38889c37fee8d /lib/Support/FoldingSet.cpp | |
parent | a095c972ccdb646b159862d72cf181b9de400d51 (diff) |
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/FoldingSet.cpp')
-rw-r--r-- | lib/Support/FoldingSet.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index d2b02f240c..3a1a0cd842 100644 --- a/lib/Support/FoldingSet.cpp +++ b/lib/Support/FoldingSet.cpp @@ -61,12 +61,6 @@ void FoldingSetNodeID::AddInteger(unsigned long long I) { if ((uint64_t)(int)I != I) Bits.push_back(unsigned(I >> 32)); } -void FoldingSetNodeID::AddFloat(float F) { - Bits.push_back(FloatToBits(F)); -} -void FoldingSetNodeID::AddDouble(double D) { - AddInteger(DoubleToBits(D)); -} void FoldingSetNodeID::AddString(const char *String) { unsigned Size = static_cast<unsigned>(strlen(String)); |