Add comment to the definition of Constant::isZeroValue().
authorShuxin Yang <shuxin.llvm@gmail.com>
Wed, 9 Jan 2013 00:53:25 +0000 (00:53 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Wed, 9 Jan 2013 00:53:25 +0000 (00:53 +0000)
(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

lib/IR/Constants.cpp

index 812692f3fae9680a22e2df64b61be257c1d537a1..93275549b182cf4e9ecfe22a55f4ef30efb7be5a 100644 (file)
@@ -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))