From a4c1974f227256d07b68969ca81a24df686df849 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 3 Jul 2019 15:12:38 +0000 Subject: [PATCH] [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 --- include/llvm/IR/ModuleSummaryIndex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.50.1