werat wrote:

> I'm sure lldb-eval had its reasons to implement this, but its use case was 
> very different from this, and it wasn't in a position to change lldb to make 
> things faster. We are.

As far as I remember flow analysis was implemented because according to C rules 
`&*p` is equivalent to `p`, which is important if `p` is NULL or "invalid". 
Same goes for array dereferencing. 

I could see how DIL may not want to care about this and just do dereference and 
return error if the pointer is invalid. I had to implement it in lldb-eval 
because we did have some user expressions that relied on this fact :)

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

Reply via email to