labath wrote:

> One thing I'm not sure about here: will converting array type to a pointer, 
> adding the index and then dereferencing work for Swift? I tried just doing 
> `base->GetChildAtIndex(index)`, but it doesn't work when the base is a 
> pointer and it also returns an error when index is out of bounds, which 
> shouldn't happen with C++.

I don't have an answer to that, but I do know that it's possible to index 
pointers in the current implementation. I suggest checking out how it achieves 
that and seeing if it can be translated to here.

https://github.com/llvm/llvm-project/pull/138551
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to