diff options
author | Teresa Johnson <tejohnson@google.com> | 2019-07-03 15:12:38 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2019-07-03 15:12:38 +0000 |
commit | 79e50166f83ce94c87c22e027c22f2ac5c721331 (patch) | |
tree | ff02cce1b2a11895110d5ebe7c8b48892f6d7e37 | |
parent | 6005681ac614ac60831dd1c22e8787f3fddcfa9d (diff) | |
download | bcm5719-llvm-79e50166f83ce94c87c22e027c22f2ac5c721331.tar.gz bcm5719-llvm-79e50166f83ce94c87c22e027c22f2ac5c721331.zip |
[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
-rw-r--r-- | llvm/include/llvm/IR/ModuleSummaryIndex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h index 23c991eb8fb..0470db738b0 100644 --- a/llvm/include/llvm/IR/ModuleSummaryIndex.h +++ b/llvm/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<const TypeIdCompatibleVtableInfo> + Optional<TypeIdCompatibleVtableInfo> getTypeIdCompatibleVtableSummary(StringRef TypeId) const { auto I = TypeIdCompatibleVtableMap.find(TypeId); if (I == TypeIdCompatibleVtableMap.end()) |