[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:49:51 PDT 2025
================
@@ -319,40 +319,41 @@ ValueObjectSynthetic::GetChildMemberWithName(llvm::StringRef name,
bool can_create) {
UpdateValueIfNeeded();
- uint32_t index = GetIndexOfChildWithName(name);
+ auto index_or_err = GetIndexOfChildWithName(name);
- if (index == UINT32_MAX)
+ if (!index_or_err)
----------------
charles-zablit wrote:
Fixed, thanks!
https://github.com/llvm/llvm-project/pull/136693
More information about the lldb-commits
mailing list