[Lldb-commits] [lldb] draft: [lldb] Upgrade ValueObject::GetData to return llvm::Expected (PR #130516)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 17 14:23:53 PDT 2025
================
@@ -291,13 +291,11 @@ bool lldb_private::formatters::NSAttributedStringSummaryProvider(
"string_ptr", pointer_value, exe_ctx, type));
if (!child_ptr_sp)
return false;
- DataExtractor data;
- Status error;
- child_ptr_sp->GetData(data, error);
- if (error.Fail())
+ auto data_or_err = child_ptr_sp->GetData();
+ if (!data_or_err)
----------------
adrian-prantl wrote:
and here
https://github.com/llvm/llvm-project/pull/130516
More information about the lldb-commits
mailing list