summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-01-09 00:53:25 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-01-09 00:53:25 +0000
commit9ca562e34eb0962e63467570aa8af8694576ce10 (patch)
tree868d0a3f031359aafd849b16a22be0e655ae9ce0 /llvm/lib
parent3552dabfe14af081a6a4434d3f908f420d0a3668 (diff)
downloadbcm5719-llvm-9ca562e34eb0962e63467570aa8af8694576ce10.tar.gz
bcm5719-llvm-9ca562e34eb0962e63467570aa8af8694576ce10.zip
Add comment to the definition of Constant::isZeroValue().
(There already has a concise comment to the declaration.) Thank Eric Christopher for his feedback! llvm-svn: 171926
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 812692f3fae..93275549b18 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/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))
OpenPOWER on IntegriCloud