[Lldb-commits] [lldb] [lldb] Upgrade `GetIndexOfChildWithName` to use `llvm::Expected` (PR #136693)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 22 08:46:29 PDT 2025
================
@@ -172,8 +173,15 @@ bool lldb_private::formatters::BlockPointerSummaryProvider(
static const ConstString s_FuncPtr_name("__FuncPtr");
- lldb::ValueObjectSP child_sp = synthetic_children->GetChildAtIndex(
- synthetic_children->GetIndexOfChildWithName(s_FuncPtr_name));
+ auto index_or_err =
+ synthetic_children->GetIndexOfChildWithName(s_FuncPtr_name);
+
+ if (!index_or_err) {
+ return false;
----------------
charles-zablit wrote:
Fixed, thanks!
The tests were indeed passing.
https://github.com/llvm/llvm-project/pull/136693
More information about the lldb-commits
mailing list