[Lldb-commits] [lldb] [lldb] Resolve ObjC property backing storage in dwim-print (PR #225204)

Augusto Noronha via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 25 16:11:24 PDT 2026


================
@@ -7090,6 +7090,40 @@ TypeSystemClang::GetDirectNestedTypeWithName(lldb::opaque_compiler_type_t type,
   return CompilerType();
 }
 
+llvm::StringRef TypeSystemClang::GetPropertyBackingStorageName(
+    lldb::opaque_compiler_type_t type, llvm::StringRef property_name) {
+  if (!type || property_name.empty())
+    return llvm::StringRef();
+
+  CompilerType compiler_type(weak_from_this(), type);
+
+  CompilerType class_type;
+  if (IsObjCObjectPointerType(compiler_type, &class_type))
----------------
augusto2112 wrote:

What's the consequence of this check? What fails without it?

https://github.com/llvm/llvm-project/pull/225204


More information about the lldb-commits mailing list