================ @@ -398,13 +398,16 @@ ValueObject::GetChildAtIndexPath(llvm::ArrayRef<size_t> idxs, if (idxs.size() == 0) return GetSP(); ValueObjectSP root(GetSP()); + + size_t current_index = 0; for (size_t idx : idxs) { root = root->GetChildAtIndex(idx); if (!root) { if (index_of_error) - *index_of_error = idx; + *index_of_error = current_index; return root; } + current_index += 1; ---------------- chelcassanova wrote:
After reading the Swift rationale for removing the `++` operator I understand why you'd use `+= 1` instead. https://github.com/llvm/llvm-project/pull/74413 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits