[Lldb-commits] [lldb] [LLDB] Add unary operators Dereference and AddressOf to DIL (PR #134428)
Andy Hippo via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 16 04:46:39 PDT 2025
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
More information about the lldb-commits
mailing list