From 7ab4cc2f1adf17dcf9a3d09a6cf27b5f8a739233 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 27 Aug 2025 14:44:25 -0700 Subject: [PATCH] [lldb] Add early exit and error logging (NFC) (cherry picked from commit 1cdec2c8ccc628c9a2939898ab4ec6dff8c76633) --- .../Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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))