[llvm] 3b11408 - [llvm] Drop unnecessary const from return types (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 7 00:16:36 PDT 2022
Author: Kazu Hirata
Date: 2022-08-07T00:16:11-07:00
New Revision: 3b114087c34bc1428b157eff8ca8599f7d2380f9
URL: https://github.com/llvm/llvm-project/commit/3b114087c34bc1428b157eff8ca8599f7d2380f9
DIFF: https://github.com/llvm/llvm-project/commit/3b114087c34bc1428b157eff8ca8599f7d2380f9.diff
LOG: [llvm] Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
Added:
Modified:
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
index 8f71ce9e96c05..5a01a8e4b0558 100644
--- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -624,7 +624,7 @@ class LoopAccessInfo {
}
/// Return the list of stores to invariant addresses.
- const ArrayRef<StoreInst *> getStoresToInvariantAddresses() const {
+ ArrayRef<StoreInst *> getStoresToInvariantAddresses() const {
return StoresToInvariantAddresses;
}
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
index f6c1f0eb21944..34065c63c5c64 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
@@ -151,9 +151,7 @@ class DbgValueLoc {
bool isEntryVal() const { return getExpression()->isEntryValue(); }
bool isVariadic() const { return IsVariadic; }
const DIExpression *getExpression() const { return Expression; }
- const ArrayRef<DbgValueLocEntry> getLocEntries() const {
- return ValueLocEntries;
- }
+ ArrayRef<DbgValueLocEntry> getLocEntries() const { return ValueLocEntries; }
friend bool operator==(const DbgValueLoc &, const DbgValueLoc &);
friend bool operator<(const DbgValueLoc &, const DbgValueLoc &);
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
More information about the llvm-commits
mailing list