================
@@ -416,19 +457,18 @@ bool 
lldb_private::formatters::LibStdcppSmartPointerSummaryProvider(
 
   DumpCxxSmartPtrPointerSummary(stream, *ptr_sp, options);
 
-  ValueObjectSP pi_sp = valobj_sp->GetChildAtNamePath({"_M_refcount", 
"_M_pi"});
+  auto pi_sp = GetReferenceCountPointer(*valobj_sp, is_atomic_child);
   if (!pi_sp)
     return false;
-
-  bool success;
+  bool success = false;
----------------
Michael137 wrote:

Lets avoid these changes since it's an output parameter that is always 
initialized by `GetValueAsUnsigned` (I don't mind initializing these anyway, 
but they're unrelated to the patch, so prefer to not include these changes)

https://github.com/llvm/llvm-project/pull/174218
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to