Author: Jan Svoboda Date: 2025-03-25T12:29:08-07:00 New Revision: bdbad3e4320509f632ae8b511d563136343d87d7
URL: https://github.com/llvm/llvm-project/commit/bdbad3e4320509f632ae8b511d563136343d87d7 DIFF: https://github.com/llvm/llvm-project/commit/bdbad3e4320509f632ae8b511d563136343d87d7.diff LOG: [lldb] Fix build after #132780 Added: Modified: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h Removed: ################################################################################ diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index 976cc47e5c51c..ed6297cc6f3e0 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 6579f7b68a9d2..442f88a5b79ae 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 @@ class TypeSystemClang : public TypeSystem { 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; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits