[llvm] r304877 - [APInt] Fix the documentation for isOneValue. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 00:40:44 PDT 2017


Author: ctopper
Date: Wed Jun  7 02:40:43 2017
New Revision: 304877

URL: http://llvm.org/viewvc/llvm-project?rev=304877&view=rev
Log:
[APInt] Fix the documentation for isOneValue. NFC

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

Modified:
    llvm/trunk/include/llvm/ADT/APInt.h

Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=304877&r1=304876&r2=304877&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Wed Jun  7 02:40:43 2017
@@ -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.




More information about the llvm-commits mailing list