UserExpression::Evaluate only returns a non-empty ValueObjectSP
authorJim Ingham <jingham@apple.com>
Mon, 7 Nov 2016 22:47:01 +0000 (22:47 +0000)
committerJim Ingham <jingham@apple.com>
Mon, 7 Nov 2016 22:47:01 +0000 (22:47 +0000)
commit0298082541696967ffabb9aec12a1a0eff58eea1
tree74d16a3c5aa415a6792821e7213797316f315832
parentb103fc52d3ae1fb23414a3bd454aabacd1e7db1e
UserExpression::Evaluate only returns a non-empty ValueObjectSP
if it returns eExpressionCompleted.  Don't try to get the error
from the ValueObjectSP if that's not true.

I just have a report of this from the field, I don't know how
to make it fail yet.

<rdar://problem/29113004>

llvm-svn: 286170
lldb/source/Expression/UserExpression.cpp
lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp