[Lldb-commits] [PATCH] D114791: [lldb] Clarify StructuredDataImpl ownership
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 30 06:11:16 PST 2021
labath added inline comments.
================
Comment at: lldb/source/API/SBThreadPlan.cpp:72-73
if (thread)
- m_opaque_wp =
- std::make_shared<ThreadPlanPython>(*thread, class_name, nullptr);
+ m_opaque_wp = std::make_shared<ThreadPlanPython>(*thread, class_name,
+ StructuredDataImpl());
}
----------------
I haven't been able to figure out how/if this works. As far as I can tell, this object will get destroyed immediately after construction due to lack of any shared_ptrs pointing to it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114791/new/
https://reviews.llvm.org/D114791
More information about the lldb-commits
mailing list