================
@@ -107,7 +107,14 @@ class ListIterator {
class AbstractListFrontEnd : public SyntheticChildrenFrontEnd {
public:
llvm::Expected<size_t> GetIndexOfChildWithName(ConstString name) override {
- return ExtractIndexFromString(name.GetCString());
+ size_t idx = ExtractIndexFromString(name.GetCString());
+ if (idx == UINT32_MAX) {
+ return llvm::createStringError(
+ "'SyntheticChildrenFrontend::AbstractListFrontEnd' cannot find index
"
----------------
Michael137 wrote:
Lets omit the `SyntheticChildrenFrontend::` part everywhere
https://github.com/llvm/llvm-project/pull/136693
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits