From 85e11c2d97fc543e56b82b0dde9a1b29a95f37ec Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 2 May 2022 00:51:46 +0200 Subject: [PATCH] Merge two conditions. --- server/TracyView.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a5771d3b..73e02f16 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -285,12 +285,9 @@ bool View::ViewDispatch( const char* fileName, int line, uint64_t symAddr ) else { const auto parentAddr = m_worker.GetSymbolForAddress( symAddr ); - if( parentAddr != 0 ) + if( parentAddr != 0 && m_worker.HasSymbolCode( parentAddr ) ) { - if( m_worker.HasSymbolCode( parentAddr ) ) - { - baseAddr = parentAddr; - } + baseAddr = parentAddr; } } if( baseAddr != 0 || line != 0 )