[Lldb-commits] [lldb] [LLDB] Update DIL handling of array subscripting. (PR #151605)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 4 02:08:15 PDT 2025


https://github.com/labath commented:

I see the bitfield handling is reflected in the test case, but I don't see anything about handling of synthetic children or objc pointers. For the objc case, I'm very tempted to *not* copy that bit of code over, since it: a) is untested (or you wouldn't have been able to start using the new implementation); b) doesn't fit into our concept of being language-agnostic.

It looks like that's mainly error handling code guarding a call to GetSyntheticArrayMember. That function eventually calls `GetCompilerType().GetChildCompilerTypeAtIndex`, so I think that special handling of ObjC should happen there.

That would also reduce the maze of the if statements, which is making the function hard to review.

https://github.com/llvm/llvm-project/pull/151605


More information about the lldb-commits mailing list