From 7840dc845192f84a99120e03c810269fb626c397 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 13 Apr 2017 17:12:00 +0000 Subject: [PATCH] [APInt] Fix the returns description for the postfix increment/decrement operators. NFC llvm-svn: 300219 --- llvm/include/llvm/ADT/APInt.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index 9179d9c96d10..42e1fe8c6a5c 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/include/llvm/ADT/APInt.h @@ -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); -- GitLab