Skip to content

Commit 9af8222

Browse files
committed
log GetNumChildren fallback
1 parent 3b030b8 commit 9af8222

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,6 @@ TypeSystemSwiftTypeRef::GetNumChildren(opaque_compiler_type_t type,
20732073
if (IsFunctionType(type, nullptr))
20742074
return 0;
20752075

2076-
// TODO: which of these should be logged on failure?
20772076
if (exe_ctx)
20782077
if (auto *exe_scope = exe_ctx->GetBestExecutionContextScope())
20792078
if (auto *runtime =
@@ -2086,6 +2085,10 @@ TypeSystemSwiftTypeRef::GetNumChildren(opaque_compiler_type_t type,
20862085
(ReconstructType(type), omit_empty_base_classes, exe_ctx));
20872086
}
20882087

2088+
LLDB_LOGF(GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES),
2089+
"Using SwiftASTContext::GetNumChildren fallback for type %s",
2090+
AsMangledName(type));
2091+
20892092
return m_swift_ast_context->GetNumChildren(
20902093
ReconstructType(type), omit_empty_base_classes, exe_ctx);
20912094
}

0 commit comments

Comments
 (0)