DavidSpickett wrote:
> could you elaborate? Not sure what you meant by "store reference to memory".
> Maybe the question is answered by the IR above?
If the argument to the called function is a reference, do we treat it as a
pointer, or is there a specific write reference?
And the answer is we do treat it as a pointer:
```
class EntityVariableBase : public Materializer::Entity {
public:
<...>
void Materialize(lldb::StackFrameSP &frame_sp, IRMemoryMap &map,
lldb::addr_t process_address, Status &err) override {
<...>
if (m_is_reference) {
<...>
Status write_error;
map.WritePointerToMemory(load_addr, reference_addr, write_error);
```
https://github.com/llvm/llvm-project/pull/153585
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits