jasonmolenda wrote:

> Sorry for missing this one earlier. I'm a little confused about earlier in 
> this method,
> 


> At the end of the loops, `sme_regnum` is the index of the final SME register 
> we've added to `m_dynamic_reg_infos`. Then if we have the ZT0 register, we 
> reuse that index a second time when adding ZT0 don't we. I don't know if it 
> has anything to do with the issue at hand, but it seems like `sme_regnum` 
> needs to be incremented if `has_zt` and we're adding one more to the vector.


lol of course I misunderstood the loop.  After the last entry is added, the 
index and `sme_regnum` are incremented, then the comparison shows that we're 
beyond the number of sme registers, and it stops.  With `sme_regnum` already 
positioned after the last sme reg.

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

Reply via email to