Skip to content

Commit be8c96d

Browse files
author
git apple-llvm automerger
committed
Merge commit '774571a03e35' from swift/release/6.1 into stable/20240723
2 parents 9839c20 + 774571a commit be8c96d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/Language/Swift/SwiftFormatters.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,8 @@ class TaskSyntheticFrontEnd : public SyntheticChildrenFrontEnd {
807807
ThreadSafeReflectionContext reflection_ctx =
808808
runtime->GetReflectionContext();
809809
ValueObjectSP task_obj_sp = m_backend.GetChildMemberWithName("_task");
810+
if (!task_obj_sp)
811+
return ChildCacheState::eRefetch;
810812
uint64_t task_ptr = task_obj_sp->GetValueAsUnsigned(LLDB_INVALID_ADDRESS);
811813
if (task_ptr != LLDB_INVALID_ADDRESS) {
812814
llvm::Expected<ReflectionContextInterface::AsyncTaskInfo> task_info =

0 commit comments

Comments
 (0)