mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 17:06:15 +00:00
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
This commit is contained in:
parent
8456efb38e
commit
c3d6de2fe5
@ -51,6 +51,8 @@ bool Constant::isNegativeZeroValue() const {
|
|||||||
return isNullValue();
|
return isNullValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Return true iff this constant is positive zero (floating point), negative
|
||||||
|
// zero (floating point), or a null value.
|
||||||
bool Constant::isZeroValue() const {
|
bool Constant::isZeroValue() const {
|
||||||
// Floating point values have an explicit -0.0 value.
|
// Floating point values have an explicit -0.0 value.
|
||||||
if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
|
if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user