Make the IsValid() operator for SBLineEntry "do the right thing" by returning true if the line entry is valid, not just if the opaque pointer to lldb_private::LineEntry is non NULL.

llvm-svn: 159287
This commit is contained in:
Greg Clayton
2012-06-27 20:18:01 +00:00
parent f47b2c26bb
commit febc8bb479

View File

@@ -110,7 +110,7 @@ SBLineEntry::GetEndAddress () const
bool
SBLineEntry::IsValid () const
{
return m_opaque_ap.get() != NULL;
return m_opaque_ap.get() && m_opaque_ap->IsValid();
}