aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp7
-rw-r--r--lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
index 976cc47..ed6297c 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -1217,10 +1217,11 @@ TypeSystemClang::GetOrCreateClangModule(llvm::StringRef name,
// Lazily initialize the module map.
if (!m_header_search_up) {
- auto HSOpts = std::make_shared<clang::HeaderSearchOptions>();
+ m_header_search_opts_up = std::make_unique<clang::HeaderSearchOptions>();
m_header_search_up = std::make_unique<clang::HeaderSearch>(
- HSOpts, *m_source_manager_up, *m_diagnostics_engine_up,
- *m_language_options_up, m_target_info_up.get());
+ *m_header_search_opts_up, *m_source_manager_up,
+ *m_diagnostics_engine_up, *m_language_options_up,
+ m_target_info_up.get());
m_module_map_up = std::make_unique<clang::ModuleMap>(
*m_source_manager_up, *m_diagnostics_engine_up, *m_language_options_up,
m_target_info_up.get(), *m_header_search_up);
diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
index 6579f7b..442f88a 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
@@ -47,6 +47,7 @@ class PDBASTParser;
namespace clang {
class FileManager;
class HeaderSearch;
+class HeaderSearchOptions;
class ModuleMap;
} // namespace clang
@@ -1203,6 +1204,7 @@ private:
std::unique_ptr<clang::IdentifierTable> m_identifier_table_up;
std::unique_ptr<clang::SelectorTable> m_selector_table_up;
std::unique_ptr<clang::Builtin::Context> m_builtins_up;
+ std::unique_ptr<clang::HeaderSearchOptions> m_header_search_opts_up;
std::unique_ptr<clang::HeaderSearch> m_header_search_up;
std::unique_ptr<clang::ModuleMap> m_module_map_up;
std::unique_ptr<DWARFASTParserClang> m_dwarf_ast_parser_up;