[lldb-dev] missing "return" in SBAddress::GetOffset

Carlo Kok ck at remobjects.com
Tue Oct 30 03:42:26 PDT 2012


lldb::addr_t
SBAddress::GetOffset ()
{
     if (m_opaque_ap.get())
         m_opaque_ap->GetOffset();
     return 0;
}

There should be a return before the m_opaque_ap->GetOffset(); Else it 
always ends up as 0



More information about the lldb-dev mailing list