diff --git a/lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp b/lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp index d46ed1ac77e18..bfab4ae7e8e31 100644 --- a/lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp +++ b/lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp @@ -3427,6 +3427,11 @@ TypeSystemSwiftTypeRef::GetCanonicalType(opaque_compiler_type_t type) { // then we don't have debug info to resolve it from. CompilerType ast_type = ReconstructType({weak_from_this(), type}, nullptr).GetCanonicalType(); + LLDB_LOG(GetLog(LLDBLog::Types), + "Cannot resolve type alias in type \"{0}\"", + AsMangledName(type)); + if (!ast_type) + return CompilerType(); CompilerType result = GetTypeFromMangledTypename(ast_type.GetMangledTypeName()); if (result && !llvm::isa(this))