Skip to content

Commit

Permalink
Merge pull request #741 from hamishknight/inout-decls-next
Browse files Browse the repository at this point in the history
[master-next] Update for apple/swift#29664
  • Loading branch information
hamishknight committed Feb 6, 2020
2 parents ea1b9f3 + d8971d6 commit 09d4556
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp
Expand Up @@ -573,6 +573,10 @@ void SwiftREPL::CompleteCode(const std::string &current_code,
swift::SourceFile *repl_source_file = new (*ast)
swift::SourceFile(*repl_module, swift::SourceFileKind::REPL, bufferID,
implicit_import_kind, /*Keep tokens*/false);

// Given this file is empty and only exists to import the standard
// library, we can go ahead and just mark it as having been type checked.
repl_source_file->ASTStage = swift::SourceFile::TypeChecked;
repl_module->addFile(*repl_source_file);
m_completion_module_initialized = true;
}
Expand Down

0 comments on commit 09d4556

Please sign in to comment.