[Lldb-commits] [PATCH] D117139: [lldb] Copy ScriptedInterface object instance to a new StructuredData object
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 13 10:18:32 PST 2022
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
More information about the lldb-commits
mailing list