[Lldb-commits] [PATCH] D101585: [lldb] Ensure SBStructuredData::m_impl_up is always non-null

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 29 17:25:33 PDT 2021


kastiglione added inline comments.


================
Comment at: lldb/source/API/SBStructuredData.cpp:43
 SBStructuredData::SBStructuredData(lldb_private::StructuredDataImpl *impl)
-    : m_impl_up(impl) {
+    : m_impl_up(impl ? impl : new StructuredDataImpl()) {
   LLDB_RECORD_CONSTRUCTOR(SBStructuredData,
----------------
This is the key change, all else is cleanup.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101585



More information about the lldb-commits mailing list