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.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@159287 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBLineEntry.cpp b/source/API/SBLineEntry.cpp
index 3f923e9..2d4e599 100644
--- a/source/API/SBLineEntry.cpp
+++ b/source/API/SBLineEntry.cpp
@@ -110,7 +110,7 @@
bool
SBLineEntry::IsValid () const
{
- return m_opaque_ap.get() != NULL;
+ return m_opaque_ap.get() && m_opaque_ap->IsValid();
}