[Eval] Dereference members of a class/struct#21
Conversation
|
I'm not sure, if this is a right fix, because I don't quite understand what is this check, it wasn't there in lldb-eval: The tests this patch fixes pass this check, so dereferencing the result works. However, for the same tests just calling But in these test it works just fine: |
|
This fix looks fine. I updated the original lldb-eval code a bit so that sometimes, while parsing, the actual ValueObject for the member field can be identified and bundled into the MemberOf node. In that case there's no point in calling EvaluateMemberOf, as we've already found the member Value Object, so we just return it. But, as you noted, we should check to see if it's a reference type and, if so, dereference it. |
No description provided.