forked from OSchip/llvm-project
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
This commit is contained in:
parent
3552dabfe1
commit
9ca562e34e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue