Skip to content

Commit 00652eb

Browse files
committed
[lldb] Never disable the objc runtime for playgrounds
rdar://141447296
1 parent 846c433 commit 00652eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,8 @@ SwiftExpressionParser::GetASTContext(DiagnosticManager &diagnostic_manager) {
812812
m_swift_ast_ctx.GetLanguageOptions().EnableTargetOSChecking = false;
813813

814814
auto should_disable_objc_runtime = [&]() {
815+
if (playground)
816+
return false;
815817
lldb::StackFrameSP this_frame_sp(m_stack_frame_wp.lock());
816818
if (!this_frame_sp)
817819
return false;

0 commit comments

Comments
 (0)