Skip to content

Commit 7ab4cc2

Browse files
committed
[lldb] Add early exit and error logging (NFC)
(cherry picked from commit 1cdec2c)
1 parent eeb5caa commit 7ab4cc2

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)