Check the result of creating a node from __next_ in the std::list formatter.
authorJim Ingham <jingham@apple.com>
Tue, 12 Mar 2019 19:27:39 +0000 (19:27 +0000)
committerJim Ingham <jingham@apple.com>
Tue, 12 Mar 2019 19:27:39 +0000 (19:27 +0000)
commit027bf7603fc76ee6acabb4aa0e6e62275a3c498a
tree65e5559e155146a6b6ad03ef8ccf5b48ef82684b
parent2ca0ebf6b4320affcc12bf9bce61d3ddcb0baa0d
Check the result of creating a node from __next_ in the std::list formatter.

There's a single report of a crash coming from this current_sp being NULL.  I don't
have a repro case, and I couldn't get it to happen by hand-corrupting a list.  We
always get an error instead.  So I don't have a test case.  But checking for null
is clearly right here.

<rdar://problem/48503320>

llvm-svn: 355957
lldb/source/Plugins/Language/CPlusPlus/LibCxxList.cpp