================
@@ -34,7 +34,9 @@ class SyntheticChildrenFrontEnd {
 
 public:
   SyntheticChildrenFrontEnd(ValueObject &backend)
-      : m_backend(backend), m_valid(true) {}
+      : m_backend(backend), m_valid(true) {
+    backend.SetSyntheticFrontend(this);
+  }
----------------
bulbazord wrote:

Ignoring whether or not ValueObject should hold a pointer to a 
SyntheticFrontEnd, I'm concerned about the lifetime management of this 
solution. If a SyntheticChildrenFrontEnd is destroyed, the underlying 
`ValueObject` will be holding a dangling pointer.

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

Reply via email to