[APFloat] Removed APFloat constructor which initialized to either zero/NaN but allowe...
authorMichael Gottesman <mgottesman@apple.com>
Thu, 27 Jun 2013 19:50:52 +0000 (19:50 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Thu, 27 Jun 2013 19:50:52 +0000 (19:50 +0000)
commit4da2ebeefb10390ad16238ae7a1038a987466225
treee8975475c1525e2724cfa683a187bdafe97bec52
parentb7110cf5b5e4832e8ded6db7ab7577e3cfa2c462
[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
include/llvm/ADT/APFloat.h
lib/Support/APFloat.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp