[llvm] r300219 - [APInt] Fix the returns description for the postfix increment/decrement operators. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 10:12:00 PDT 2017


Author: ctopper
Date: Thu Apr 13 12:12:00 2017
New Revision: 300219

URL: http://llvm.org/viewvc/llvm-project?rev=300219&view=rev
Log:
[APInt] Fix the returns description for the postfix increment/decrement operators. NFC

Modified:
    llvm/trunk/include/llvm/ADT/APInt.h

Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=300219&r1=300218&r2=300219&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Thu Apr 13 12:12:00 2017
@@ -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);




More information about the llvm-commits mailing list