Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3758,8 +3758,8 @@ ThreadSafeASTContext SwiftASTContext::GetASTContext() {
std::make_unique<SwiftDWARFImporterDelegate>(*this);
auto importer_diags = getScopedDiagnosticConsumer();
clang_importer_up = swift::ClangImporter::create(
*m_ast_context_up, "", m_dependency_tracker.get(),
m_dwarfimporter_delegate_up.get());
*m_ast_context_up, &GetCompilerInvocation().getIRGenOptions(),
"", m_dependency_tracker.get(), m_dwarfimporter_delegate_up.get());

// Handle any errors.
if (!clang_importer_up || importer_diags->HasErrors()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class ClangNameImporter {
m_compiler_invocation.getCASOptions(),
m_compiler_invocation.getSerializationOptions(),
m_source_manager, m_diagnostic_engine));
m_clang_importer = swift::ClangImporter::create(*m_ast_context, "", {}, {});
m_clang_importer = swift::ClangImporter::create(*m_ast_context,
nullptr, "", {}, {});
}
std::string ImportName(const clang::NamedDecl *decl) {
swift::DeclName imported_name = m_clang_importer->importName(decl, {});
Expand Down