Skip to content

Commit 9a802d8

Browse files
Merge pull request #11271 from adrian-prantl/cherry-pick-next-lldb-Add-early-exit-and-error-logging-NFC
[Cherry-pick into next] [lldb] Add early exit and error logging (NFC)
2 parents eeb5caa + 7ab4cc2 commit 9a802d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,6 +3427,11 @@ TypeSystemSwiftTypeRef::GetCanonicalType(opaque_compiler_type_t type) {
34273427
// then we don't have debug info to resolve it from.
34283428
CompilerType ast_type =
34293429
ReconstructType({weak_from_this(), type}, nullptr).GetCanonicalType();
3430+
LLDB_LOG(GetLog(LLDBLog::Types),
3431+
"Cannot resolve type alias in type \"{0}\"",
3432+
AsMangledName(type));
3433+
if (!ast_type)
3434+
return CompilerType();
34303435
CompilerType result =
34313436
GetTypeFromMangledTypename(ast_type.GetMangledTypeName());
34323437
if (result && !llvm::isa<TypeSystemSwiftTypeRefForExpressions>(this))

0 commit comments

Comments
 (0)