From 785f37b2073f856f4b6b4eeeb3023d0f40e1e103 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 4 Aug 2021 07:38:24 -0700 Subject: [PATCH] [ADT] Drop unnecessary const from return types (NFC) Identified with const-return-type-APInt. --- llvm/include/llvm/ADT/APInt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index ff586f763e821..68a229478c189 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/include/llvm/ADT/APInt.h @@ -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; @@ -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;