[llvm-commits] [llvm] r171926 - /llvm/trunk/lib/IR/Constants.cpp

Shuxin Yang shuxin.llvm at gmail.com
Tue Jan 8 16:53:25 PST 2013


Author: shuxin_yang
Date: Tue Jan  8 18:53:25 2013
New Revision: 171926

URL: http://llvm.org/viewvc/llvm-project?rev=171926&view=rev
Log:
Add comment to the definition of Constant::isZeroValue(). 
(There already has a concise comment to the declaration.)

Thank Eric Christopher for his feedback!

Modified:
    llvm/trunk/lib/IR/Constants.cpp

Modified: llvm/trunk/lib/IR/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Constants.cpp?rev=171926&r1=171925&r2=171926&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Constants.cpp (original)
+++ llvm/trunk/lib/IR/Constants.cpp Tue Jan  8 18:53:25 2013
@@ -51,6 +51,8 @@
   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))





More information about the llvm-commits mailing list