diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-07 00:16:11 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-07 00:16:11 -0700 |
commit | 3b114087c34bc1428b157eff8ca8599f7d2380f9 (patch) | |
tree | 7e35b2ce304df39ae7645241eb47cade53438e78 | |
parent | aa4977f2e1354bb5e1937235dd12199839ab0801 (diff) |
[llvm] Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
-rw-r--r-- | llvm/include/llvm/Analysis/LoopAccessAnalysis.h | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h index 8f71ce9e96c0..5a01a8e4b055 100644 --- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h +++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h @@ -624,7 +624,7 @@ public: } /// 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 f6c1f0eb2194..34065c63c5c6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h +++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h @@ -151,9 +151,7 @@ public: 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) |