Fix an error in the comment for APInt::getMinSignedBits.
authorDan Gohman <gohman@apple.com>
Fri, 30 May 2008 00:46:49 +0000 (00:46 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 30 May 2008 00:46:49 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51720 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index 49b243bf346577932640ddcb7e09d1647fb72daa..628f860cbab9d663e96263a6aee39e2cd3a6f8f7 100644 (file)
@@ -898,7 +898,7 @@ public:
 
   /// Computes the minimum bit width for this APInt while considering it to be
   /// a signed (and probably negative) value. If the value is not negative, 
-  /// this function returns the same value as getActiveBits(). Otherwise, it
+  /// this function returns the same value as getActiveBits()+1. Otherwise, it
   /// returns the smallest bit width that will retain the negative value. For
   /// example, -1 can be written as 0b1 or 0xFFFFFFFFFF. 0b1 is shorter and so
   /// for -1, this function will always return 1.
@@ -1107,8 +1107,6 @@ public:
     return *this;
   }
 
-  /// @}
-
   /// @}
   /// @name Building-block Operations for APInt and APFloat
   /// @{