diff options
Diffstat (limited to 'lldb/source/API/SBLineEntry.cpp')
-rw-r--r-- | lldb/source/API/SBLineEntry.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/API/SBLineEntry.cpp b/lldb/source/API/SBLineEntry.cpp index db288bc6f0c..3f923e92381 100644 --- a/lldb/source/API/SBLineEntry.cpp +++ b/lldb/source/API/SBLineEntry.cpp @@ -75,8 +75,9 @@ SBLineEntry::GetStartAddress () const if (log) { StreamString sstr; - if (sb_address.get()) - sb_address->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); + const Address *addr = sb_address.get(); + if (addr) + addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); log->Printf ("SBLineEntry(%p)::GetStartAddress () => SBAddress (%p): %s", m_opaque_ap.get(), sb_address.get(), sstr.GetData()); } @@ -97,8 +98,9 @@ SBLineEntry::GetEndAddress () const if (log) { StreamString sstr; - if (sb_address.get()) - sb_address->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); + const Address *addr = sb_address.get(); + if (addr) + addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4); log->Printf ("SBLineEntry(%p)::GetEndAddress () => SBAddress (%p): %s", m_opaque_ap.get(), sb_address.get(), sstr.GetData()); } |