[llvm] 785f37b - [ADT] Drop unnecessary const from return types (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 4 07:38:39 PDT 2021
Author: Kazu Hirata
Date: 2021-08-04T07:38:24-07:00
New Revision: 785f37b2073f856f4b6b4eeeb3023d0f40e1e103
URL: https://github.com/llvm/llvm-project/commit/785f37b2073f856f4b6b4eeeb3023d0f40e1e103
DIFF: https://github.com/llvm/llvm-project/commit/785f37b2073f856f4b6b4eeeb3023d0f40e1e103.diff
LOG: [ADT] Drop unnecessary const from return types (NFC)
Identified with const-return-type-APInt.
Added:
Modified:
llvm/include/llvm/ADT/APInt.h
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list