[Lldb-commits] [lldb] [lldb] Upgrade `GetIndexOfChildWithName` to use `llvm::Expected` (PR #136693)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 24 12:58:01 PDT 2025
================
@@ -67,7 +67,9 @@ TypeFilterImpl::FrontEnd::GetIndexOfChildWithName(ConstString name) {
}
}
}
- return UINT32_MAX;
+ return llvm::createStringError(
+ "'SyntheticChildrenFrontEnd::FrontEnd' cannot find index of child '%s'",
----------------
adrian-prantl wrote:
> I'm not sure where these error messages will currently show up actually
The error messages in the Expected return results of CompilerType are surfaced when formatting ValueObjects, for example.
https://github.com/llvm/llvm-project/pull/136693
More information about the lldb-commits
mailing list