[APInt] Fix the documentation for isOneValue. NFC

I copy and pasted from isNullValue and forgot to update it.

llvm-svn: 304877
This commit is contained in:
Craig Topper 2017-06-07 07:40:43 +00:00
parent 73ba1c84be
commit bbb4ac678f
1 changed files with 2 additions and 3 deletions

View File

@ -392,10 +392,9 @@ public:
/// not. /// not.
bool isNullValue() const { return !*this; } bool isNullValue() const { return !*this; }
/// \brief Determine if all bits are clear /// \brief Determine if this is a value of 1.
/// ///
/// This checks to see if the value has all bits of the APInt are clear or /// This checks to see if the value of this APInt is one.
/// not.
bool isOneValue() const { return getActiveBits() == 1; } bool isOneValue() const { return getActiveBits() == 1; }
/// \brief Determine if this is the largest unsigned value. /// \brief Determine if this is the largest unsigned value.