[llvm] Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
GitOrigin-RevId: 3b114087c34bc1428b157eff8ca8599f7d2380f9
diff --git a/include/llvm/Analysis/LoopAccessAnalysis.h b/include/llvm/Analysis/LoopAccessAnalysis.h
index 8f71ce9..5a01a8e 100644
--- a/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -624,7 +624,7 @@
}
/// Return the list of stores to invariant addresses.
- const ArrayRef<StoreInst *> getStoresToInvariantAddresses() const {
+ ArrayRef<StoreInst *> getStoresToInvariantAddresses() const {
return StoresToInvariantAddresses;
}
diff --git a/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/lib/CodeGen/AsmPrinter/DebugLocEntry.h
index f6c1f0e..34065c6 100644
--- a/lib/CodeGen/AsmPrinter/DebugLocEntry.h
+++ b/lib/CodeGen/AsmPrinter/DebugLocEntry.h
@@ -151,9 +151,7 @@
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)