]> granicus.if.org Git - llvm/commitdiff
[APInt] Fix the returns description for the postfix increment/decrement operators...
authorCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 17:12:00 +0000 (17:12 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 17:12:00 +0000 (17:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300219 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index 9179d9c96d1024eef3a8d7dad6556b12a0a8ebe0..42e1fe8c6a5c74a206663f30bb220a84ed92d50b 100644 (file)
@@ -620,7 +620,9 @@ public:
 
   /// \brief Postfix increment operator.
   ///
-  /// \returns a new APInt value representing *this incremented by one
+  /// Increments *this by 1.
+  ///
+  /// \returns a new APInt value representing the original value of *this.
   const APInt operator++(int) {
     APInt API(*this);
     ++(*this);
@@ -634,7 +636,9 @@ public:
 
   /// \brief Postfix decrement operator.
   ///
-  /// \returns a new APInt representing *this decremented by one.
+  /// Decrements *this by 1.
+  ///
+  /// \returns a new APInt value representing the original value of *this.
   const APInt operator--(int) {
     APInt API(*this);
     --(*this);