summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APFloat.h
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-06-27 19:50:52 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-06-27 19:50:52 +0000
commit4da2ebeefb10390ad16238ae7a1038a987466225 (patch)
treee8975475c1525e2724cfa683a187bdafe97bec52 /include/llvm/ADT/APFloat.h
parentb7110cf5b5e4832e8ded6db7ab7577e3cfa2c462 (diff)
downloadllvm-4da2ebeefb10390ad16238ae7a1038a987466225.tar.gz
llvm-4da2ebeefb10390ad16238ae7a1038a987466225.tar.bz2
llvm-4da2ebeefb10390ad16238ae7a1038a987466225.tar.xz
[APFloat] Removed APFloat constructor which initialized to either zero/NaN but allowed you to arbitrarily set the category of the float.
The category which an APFloat belongs to should be dependent on the actual value that the APFloat has, not be arbitrarily passed in by the user. This will prevent inconsistency bugs where the category and the actual value in APFloat differ. I also fixed up all of the references to this constructor (which were only in LLVM). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APFloat.h')
-rw-r--r--include/llvm/ADT/APFloat.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h
index 7e71dd3393..4ccb96ab76 100644
--- a/include/llvm/ADT/APFloat.h
+++ b/include/llvm/ADT/APFloat.h
@@ -191,7 +191,6 @@ public:
APFloat(const fltSemantics &); // Default construct to 0.0
APFloat(const fltSemantics &, StringRef);
APFloat(const fltSemantics &, integerPart);
- APFloat(const fltSemantics &, fltCategory, bool negative);
APFloat(const fltSemantics &, uninitializedTag);
APFloat(const fltSemantics &, const APInt &);
explicit APFloat(double d);