Only pack pointer if needed.

This commit is contained in:
Bartosz Taudul 2021-03-26 00:14:12 +01:00
parent eaef966aa9
commit ec16182887
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -2525,10 +2525,10 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal,
} }
else if( ImGui::IsMouseClicked( 2 ) ) else if( ImGui::IsMouseClicked( 2 ) )
{ {
const auto cfi = worker.PackPointer( line.addr );
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen ); auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
if( inlineList ) if( inlineList )
{ {
const auto cfi = worker.PackPointer( line.addr );
bool found = false; bool found = false;
const auto symEnd = m_baseAddr + m_codeLen; const auto symEnd = m_baseAddr + m_codeLen;
while( *inlineList < symEnd ) while( *inlineList < symEnd )