summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-30 00:46:49 +0000
committerDan Gohman <gohman@apple.com>2008-05-30 00:46:49 +0000
commitcdff51cabcebcd0eeb227ecf92eabbf8b1aeb77c (patch)
tree81e50ed5e37903c7fcd02583cced8160d39cf0f1 /include/llvm/ADT/APInt.h
parent5bd91232c31258098b63b31c4a4b2fc9976f5007 (diff)
downloadllvm-cdff51cabcebcd0eeb227ecf92eabbf8b1aeb77c.tar.gz
llvm-cdff51cabcebcd0eeb227ecf92eabbf8b1aeb77c.tar.bz2
llvm-cdff51cabcebcd0eeb227ecf92eabbf8b1aeb77c.tar.xz
Fix an error in the comment for APInt::getMinSignedBits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r--include/llvm/ADT/APInt.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 49b243bf34..628f860cba 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -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.
@@ -1108,8 +1108,6 @@ public:
}
/// @}
-
- /// @}
/// @name Building-block Operations for APInt and APFloat
/// @{