diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-01-09 00:53:25 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-01-09 00:53:25 +0000 |
commit | c3d6de2fe52dbdbf41b1dfebb1430656a16b254b (patch) | |
tree | 988fdc9692ae9b42756290a9887b04b39e2f239e | |
parent | 8456efb38e479e4878a6a782c3026c20b09c1f8e (diff) |
Add comment to the definition of Constant::isZeroValue().
(There already has a concise comment to the declaration.)
Thank Eric Christopher for his feedback!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171926 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/IR/Constants.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IR/Constants.cpp b/lib/IR/Constants.cpp index 812692f3fa..93275549b1 100644 --- a/lib/IR/Constants.cpp +++ b/lib/IR/Constants.cpp @@ -51,6 +51,8 @@ bool Constant::isNegativeZeroValue() const { return isNullValue(); } +// Return true iff this constant is positive zero (floating point), negative +// zero (floating point), or a null value. bool Constant::isZeroValue() const { // Floating point values have an explicit -0.0 value. if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) |