Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a70d5d

Browse files
author
Greg Clayton
committedJun 27, 2012
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
1 parent ca1500f commit 3a70d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎source/API/SBLineEntry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ SBLineEntry::GetEndAddress () const
110110
bool
111111
SBLineEntry::IsValid () const
112112
{
113-
return m_opaque_ap.get() != NULL;
113+
return m_opaque_ap.get() && m_opaque_ap->IsValid();
114114
}
115115

116116

0 commit comments

Comments
 (0)
This repository has been archived.