aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-08-24 22:09:56 +0000
committerDale Johannesen <dalej@apple.com>2007-08-24 22:09:56 +0000
commit12595d7b165bf460b18f4ddd395dd29e6e6e68bc (patch)
treefaf1eb03b939699d0d02ccffedb56e8ebf9b7230 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent8bb369b8072c919ef5802f639a52b17620201190 (diff)
Poison APFloat::operator==. Replace existing uses with bitwiseIsEqual.
This means backing out the preceding change to Constants.cpp, alas. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 10ffdc42b1..6155ee160c 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -49,7 +49,7 @@ static SDVTList makeVTList(const MVT::ValueType *VTs, unsigned NumVTs) {
/// As such, this method can be used to do an exact bit-for-bit comparison of
/// two floating point values.
bool ConstantFPSDNode::isExactlyValue(double V) const {
- return Value == APFloat(V);
+ return Value.bitwiseIsEqual(APFloat(V));
}
//===----------------------------------------------------------------------===//