[Lldb-commits] [PATCH] D46606: General cleanup to minimize the .debug_types patch

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 9 00:45:26 PDT 2018


labath added a comment.

This looks fine to me. I am not clicking accept yet, so other debug info folks can take a look at this too.



================
Comment at: source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp:28
   // Out of memory?
-  if (cu_sp.get() == NULL)
+  if (!cu_sp)
     return nullptr;
----------------
This is dead code. `new` will abort the program if it cannot allocate memory for the object. 


https://reviews.llvm.org/D46606





More information about the lldb-commits mailing list