Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-03-26 02:14:12 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-03-26 02:14:12 +0300
commitec16182887fd12822e1c937fe0753fb68ae2f825 (patch)
tree932d4587904d9c92a85618fa29f81a7a52db4ecb
parenteaef966aa9a4c5a23cc87814da55fb45c3e16cb5 (diff)
Only pack pointer if needed.
-rw-r--r--server/TracySourceView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp
index fa7c497b..cda275e0 100644
--- a/server/TracySourceView.cpp
+++ b/server/TracySourceView.cpp
@@ -2525,10 +2525,10 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal,
}
else if( ImGui::IsMouseClicked( 2 ) )
{
- const auto cfi = worker.PackPointer( line.addr );
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );
if( inlineList )
{
+ const auto cfi = worker.PackPointer( line.addr );
bool found = false;
const auto symEnd = m_baseAddr + m_codeLen;
while( *inlineList < symEnd )