[ThinLTO] Fix gcc warnings from commit
authorTeresa Johnson <tejohnson@google.com>
Wed, 3 Jul 2019 15:12:38 +0000 (15:12 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 3 Jul 2019 15:12:38 +0000 (15:12 +0000)
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.

llvm-svn: 365047

llvm/include/llvm/IR/ModuleSummaryIndex.h

index 23c991e..0470db7 100644 (file)
@@ -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())