From: Teresa Johnson Date: Wed, 3 Jul 2019 15:12:38 +0000 (+0000) Subject: [ThinLTO] Fix gcc warnings from commit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4c1974f227256d07b68969ca81a24df686df849;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365047 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/ModuleSummaryIndex.h b/include/llvm/IR/ModuleSummaryIndex.h index 23c991eb8fb..0470db738b0 100644 --- a/include/llvm/IR/ModuleSummaryIndex.h +++ b/include/llvm/IR/ModuleSummaryIndex.h @@ -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 + Optional getTypeIdCompatibleVtableSummary(StringRef TypeId) const { auto I = TypeIdCompatibleVtableMap.find(TypeId); if (I == TypeIdCompatibleVtableMap.end())