From: Craig Topper Date: Wed, 7 Jun 2017 07:40:43 +0000 (+0000) Subject: [APInt] Fix the documentation for isOneValue. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d4bfc7c8bb6182909ab592ecf023b1e39413ec6;p=llvm [APInt] Fix the documentation for isOneValue. NFC 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 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index b45f0601b0a..ef9c66d2d70 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -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.