[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.

llvm-svn: 365047
This commit is contained in:
Teresa Johnson 2019-07-03 15:12:38 +00:00
parent 6005681ac6
commit 79e50166f8
1 changed files with 1 additions and 1 deletions

View 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())