Skip to content

Commit ada833d

Browse files
Merge pull request #11270 from adrian-prantl/early-exit-log
[lldb] Add early exit and error logging (NFC)
2 parents 624e7d8 + 1cdec2c commit ada833d

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
@@ -3437,6 +3437,11 @@ TypeSystemSwiftTypeRef::GetCanonicalType(opaque_compiler_type_t type) {
34373437
// then we don't have debug info to resolve it from.
34383438
CompilerType ast_type =
34393439
ReconstructType({weak_from_this(), type}, nullptr).GetCanonicalType();
3440+
LLDB_LOG(GetLog(LLDBLog::Types),
3441+
"Cannot resolve type alias in type \"{0}\"",
3442+
AsMangledName(type));
3443+
if (!ast_type)
3444+
return CompilerType();
34403445
CompilerType result =
34413446
GetTypeFromMangledTypename(ast_type.GetMangledTypeName());
34423447
if (result && !llvm::isa<TypeSystemSwiftTypeRefForExpressions>(this))

0 commit comments

Comments
 (0)