Skip to content
Closed
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: 0 additions & 4 deletions lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp
Original file line number Diff line number Diff line change
@@ -553,10 +553,6 @@ int SwiftREPL::CompleteCode(const std::string &current_code,
llvm::dyn_cast_or_null<SwiftASTContext>(&*type_system_or_err);
if (target_swift_ast)
m_swift_ast_sp.reset(new SwiftASTContext(*target_swift_ast));
auto &ctx = *m_swift_ast_sp.get()->GetASTContext();
swift::registerIDERequestFunctions(ctx.evaluator);
swift::registerTypeCheckerRequestFunctions(ctx.evaluator);
swift::createTypeChecker(ctx);
}
SwiftASTContext *swift_ast = m_swift_ast_sp.get();

1 change: 1 addition & 0 deletions lldb/source/Symbol/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
@@ -3467,6 +3467,7 @@ swift::ASTContext *SwiftASTContext::GetASTContext() {

// Set up the required state for the evaluator in the TypeChecker.
(void)swift::createTypeChecker(*m_ast_context_ap);
registerIDERequestFunctions(m_ast_context_ap->evaluator);
registerParseRequestFunctions(m_ast_context_ap->evaluator);
registerTypeCheckerRequestFunctions(m_ast_context_ap->evaluator);