[Lldb-commits] [lldb] r159287 - /lldb/trunk/source/API/SBLineEntry.cpp
Greg Clayton
gclayton at apple.com
Wed Jun 27 13:18:01 PDT 2012
Author: gclayton
Date: Wed Jun 27 15:18:01 2012
New Revision: 159287
URL: http://llvm.org/viewvc/llvm-project?rev=159287&view=rev
Log:
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.
Modified:
lldb/trunk/source/API/SBLineEntry.cpp
Modified: lldb/trunk/source/API/SBLineEntry.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBLineEntry.cpp?rev=159287&r1=159286&r2=159287&view=diff
==============================================================================
--- lldb/trunk/source/API/SBLineEntry.cpp (original)
+++ lldb/trunk/source/API/SBLineEntry.cpp Wed Jun 27 15:18:01 2012
@@ -110,7 +110,7 @@
bool
SBLineEntry::IsValid () const
{
- return m_opaque_ap.get() != NULL;
+ return m_opaque_ap.get() && m_opaque_ap->IsValid();
}
More information about the lldb-commits
mailing list