labath added a comment.

Yes, you can't "turn" a void* into a shared_ptr<void> because the shared 
pointer would not know how to delete the pointed object.  However, you can 
create a pointer which is /aliased/ to a void* and use that for something.

That said, I am (still) not sure if that is what you really want to do. And the 
more I look at this patch, the more it seems to me that there is still 
something wrong with the ownerships. Maybe we could start by clarifying what 
the ownership of various object really is, then seeing if we have some tools 
that would make that explicit. I'll continue this on the merged patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117139/new/

https://reviews.llvm.org/D117139

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to