I see. In that case, at least store it in a std::unique_ptr<uint8_t[]>.
On Mon, May 29, 2017 at 12:22 AM Ravitheja Addepally via Phabricator < revi...@reviews.llvm.org> wrote: > ravitheja added a comment. > > Hello, the reason I switched to allocating with new (std::nothrow) > uint8_t[byte_count]; was because the byte_count is actually user defined > and I do want to catch cases where lldb is not able to allocate the > requested buffer size. > > > https://reviews.llvm.org/D32585 > > > >
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits