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

Greg Clayton gclayton at apple.com
Tue Oct 30 09:33:03 PDT 2012


Indeed:

% svn commit source/API/SBAddress.cpp
Sending        source/API/SBAddress.cpp
Transmitting file data .
Committed revision 167019.


On Oct 30, 2012, at 3:42 AM, Carlo Kok <ck at remobjects.com> wrote:

> 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
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list