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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user