Skip to content

Commit c07da4b

Browse files
Merge pull request #10263 from adrian-prantl/146038677
[lldb] Eliminate dead code
2 parents af544db + eeedee7 commit c07da4b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lldb/source/Target/Thread.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,10 @@ void Thread::FrameSelectedCallback(StackFrame *frame) {
355355
Status error;
356356
ExecutionContext exe_ctx;
357357
frame->CalculateExecutionContext(exe_ctx);
358-
if (auto *exe_scope = exe_ctx.GetBestExecutionContextScope())
359-
if (auto target = frame->CalculateTarget())
360-
if (auto swift_ast_ctx =
361-
TypeSystemSwiftTypeRefForExpressions::GetForTarget(*target))
362-
swift_ast_ctx->DiagnoseWarnings(*GetProcess(), msc);
358+
if (auto target = frame->CalculateTarget())
359+
if (auto swift_ast_ctx =
360+
TypeSystemSwiftTypeRefForExpressions::GetForTarget(*target))
361+
swift_ast_ctx->DiagnoseWarnings(*GetProcess(), msc);
363362
}
364363
#endif
365364
}

0 commit comments

Comments
 (0)