Skip to content

Commit 37c40dc

Browse files
committed
Improve error logging
1 parent 186d2f0 commit 37c40dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,12 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
608608
root, {Kind::TypeMangling, Kind::Type, Kind::BuiltinTypeName});
609609
if (builtin_type)
610610
return 0;
611+
LLDB_LOG(GetLog(LLDBLog::Types),
612+
"{0}: unrecognized builtin type info or this is a Clang type with "
613+
"DWARF debug info",
614+
type.GetMangledTypeName());
615+
return {};
616+
611617
}
612618
// Structs and Tuples.
613619
if (auto *rti = llvm::dyn_cast<swift::reflection::RecordTypeInfo>(ti)) {

0 commit comments

Comments
 (0)