Skip to content

Commit

Permalink
Merge pull request #1937 from brentdax/these-imports-are-testing-my-p…
Browse files Browse the repository at this point in the history
…atience

[lldb] Update to match apple/swift#33935
  • Loading branch information
beccadax committed Oct 11, 2020
2 parents a153c00 + dbef9ec commit 9f1d8f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -1189,7 +1189,8 @@ static llvm::Expected<ParsedExpression> ParseAndImport(
swift::ImplicitImportInfo importInfo;
importInfo.StdlibKind = swift::ImplicitStdlibKind::Stdlib;
for (auto *module : additional_imports)
importInfo.AdditionalModules.emplace_back(module, /*exported*/ false);
importInfo.AdditionalImports.emplace_back(swift::ImportedModule(module),
swift::ImportOptions());

auto module_id = ast_context->getIdentifier(expr_name_buf);
auto &module = *swift::ModuleDecl::create(module_id, *ast_context,
Expand Down
2 changes: 1 addition & 1 deletion lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
Expand Up @@ -8314,7 +8314,7 @@ bool SwiftASTContext::CacheUserImports(SwiftASTContext &swift_ast_context,
swift::SourceFile &source_file,
Status &error) {
llvm::SmallString<1> m_description;
llvm::SmallVector<swift::ModuleDecl::ImportedModule, 2> parsed_imports;
llvm::SmallVector<swift::ImportedModule, 2> parsed_imports;

swift::ModuleDecl::ImportFilter import_filter {
swift::ModuleDecl::ImportFilterKind::Exported,
Expand Down

0 comments on commit 9f1d8f2

Please sign in to comment.