[llvm] r365047 - [ThinLTO] Fix gcc warnings from commit
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 3 08:12:38 PDT 2019
Author: tejohnson
Date: Wed Jul 3 08:12:38 2019
New Revision: 365047
URL: http://llvm.org/viewvc/llvm-project?rev=365047&view=rev
Log:
[ThinLTO] Fix gcc warnings from commit
Remove an unnecessary const from an Optional return type introduced
in r364960 that gcc 7.4.0 warns about. It is unnecessary and possibly
incorrect.
Modified:
llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
Modified: llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h?rev=365047&r1=365046&r2=365047&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h (original)
+++ llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h Wed Jul 3 08:12:38 2019
@@ -1308,7 +1308,7 @@ public:
/// For the given \p TypeId, this returns the TypeIdCompatibleVtableMap
/// entry if present in the summary map. This may be used when importing.
- Optional<const TypeIdCompatibleVtableInfo>
+ Optional<TypeIdCompatibleVtableInfo>
getTypeIdCompatibleVtableSummary(StringRef TypeId) const {
auto I = TypeIdCompatibleVtableMap.find(TypeId);
if (I == TypeIdCompatibleVtableMap.end())
More information about the llvm-commits
mailing list