[Lldb-commits] [PATCH] D142341: [LLDB][NFC] Fix valobj_sp null pointer checks in lldb/source/Plugins/Language/

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 23 05:59:18 PST 2023


Michael137 added inline comments.


================
Comment at: lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp:225
   if (valobj_sp)
+    SyntheticChildrenFrontEnd(*valobj_sp);
     Update();
----------------
Michael137 wrote:
> this won't initialise the parent constructor though will it? Just creates a temporary and immediately destructs it? You might need to put it back into the initialiser list and use a ternary
Oh but `SyntheticChildrenFrontEnd` seems to always take a reference. The interfaces seem to be a little mismatched


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142341



More information about the lldb-commits mailing list