forked from OSchip/llvm-project
Make the error return more explicit when an SBValue has no value.
llvm-svn: 251722
This commit is contained in:
parent
8731ad72aa
commit
d612918367
|
@ -1425,7 +1425,10 @@ lldb::ValueObjectSP
|
|||
SBValue::GetSP (ValueLocker &locker) const
|
||||
{
|
||||
if (!m_opaque_sp || !m_opaque_sp->IsValid())
|
||||
{
|
||||
locker.GetError().SetErrorString("No value");
|
||||
return ValueObjectSP();
|
||||
}
|
||||
return locker.GetLockedSP(*m_opaque_sp.get());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue