]> granicus.if.org Git - llvm/commitdiff
[APInt] Fix the documentation for isOneValue. NFC
authorCraig Topper <craig.topper@gmail.com>
Wed, 7 Jun 2017 07:40:43 +0000 (07:40 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 7 Jun 2017 07:40:43 +0000 (07:40 +0000)
I copy and pasted from isNullValue and forgot to update it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304877 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index b45f0601b0a0a0ff7732eaddcff4efa49961416d..ef9c66d2d700bfe744fc0989792fdc643a823f5e 100644 (file)
@@ -392,10 +392,9 @@ public:
   /// not.
   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
-  /// not.
+  /// This checks to see if the value of this APInt is one.
   bool isOneValue() const { return getActiveBits() == 1; }
 
   /// \brief Determine if this is the largest unsigned value.