Skip to content

Commit

Permalink
[ADT] Drop unnecessary const from return types (NFC)
Browse files Browse the repository at this point in the history
Identified with const-return-type-APInt.
  • Loading branch information
kazutakahirata committed Aug 4, 2021
1 parent d42e70b commit 785f37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/ADT/APInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ class LLVM_NODISCARD APInt {
/// Increments *this by 1.
///
/// \returns a new APInt value representing the original value of *this.
const APInt operator++(int) {
APInt operator++(int) {
APInt API(*this);
++(*this);
return API;
Expand All @@ -722,7 +722,7 @@ class LLVM_NODISCARD APInt {
/// Decrements *this by 1.
///
/// \returns a new APInt value representing the original value of *this.
const APInt operator--(int) {
APInt operator--(int) {
APInt API(*this);
--(*this);
return API;
Expand Down

0 comments on commit 785f37b

Please sign in to comment.