[Lldb-commits] [lldb] [lldb] Call FixUpPointer in WritePointerToMemory (try 2) (PR #153585)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 3 01:04:16 PDT 2025


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


More information about the lldb-commits mailing list