From bbb4ac678fd9dae84dd99a9d35b5f03604a1af80 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 7 Jun 2017 07:40:43 +0000 Subject: [PATCH] [APInt] Fix the documentation for isOneValue. NFC I copy and pasted from isNullValue and forgot to update it. llvm-svn: 304877 --- llvm/include/llvm/ADT/APInt.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index b45f0601b0a0..ef9c66d2d700 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/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.