aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-03 01:11:13 +0000
committerChris Lattner <sabre@nondot.org>2010-12-03 01:11:13 +0000
commit8d64989275b8708a4545934a52ddef5284d473b8 (patch)
tree3bff472bd4c04fb11012e6410cc3becabe8e1cee
parent32a006e606742b1c5401e49607e33717bb5441f0 (diff)
clarify comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120772 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constants.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index a75aaf72a3..0fe9358b85 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -266,8 +266,8 @@ public:
inline const APFloat& getValueAPF() const { return Val; }
/// isNullValue - Return true if this is the value that would be returned by
- /// getNullValue. Don't depend on == for doubles to tell us it's zero, it
- /// considers -0.0 to be null as well as 0.0. :(
+ /// getNullValue. For ConstantFP, this is +0.0, but not -0.0. To handle the
+ /// two the same, use isZero().
virtual bool isNullValue() const;
/// isNegativeZeroValue - Return true if the value is what would be returned