diff options
author | Greg Clayton <gclayton@apple.com> | 2012-06-27 20:18:01 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-06-27 20:18:01 +0000 |
commit | febc8bb479a4851234a4c74c9b8a35d844ea3d31 (patch) | |
tree | b3babede711863b66956fbfe9d52fdd9b3e26e54 /lldb/source/API/SBLineEntry.cpp | |
parent | f47b2c26bb9bef8d88600ed5a238511eeaacd6c5 (diff) | |
download | bcm5719-llvm-febc8bb479a4851234a4c74c9b8a35d844ea3d31.tar.gz bcm5719-llvm-febc8bb479a4851234a4c74c9b8a35d844ea3d31.zip |
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
Diffstat (limited to 'lldb/source/API/SBLineEntry.cpp')
-rw-r--r-- | lldb/source/API/SBLineEntry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBLineEntry.cpp b/lldb/source/API/SBLineEntry.cpp index 3f923e92381..2d4e599c098 100644 --- a/lldb/source/API/SBLineEntry.cpp +++ b/lldb/source/API/SBLineEntry.cpp @@ -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(); } |