File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
lldb/source/Plugins/Language/Swift Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -672,13 +672,16 @@ class URLComponentsSyntheticChildrenFrontEnd
672
672
m_synth_frontend_up->Update ();
673
673
674
674
#define COMPONENT (Name, PrettyName, ID ) \
675
- auto index_or_err = m_synth_frontend_up->GetIndexOfChildWithName (g__##Name); \
676
- if (!index_or_err) { \
677
- LLDB_LOG_ERROR (GetLog (LLDBLog::DataFormatters), index_or_err.takeError (), \
678
- " {0}" ); \
679
- return ChildCacheState::eRefetch; \
675
+ { \
676
+ auto index_or_err = \
677
+ m_synth_frontend_up->GetIndexOfChildWithName (g__##Name); \
678
+ if (!index_or_err) { \
679
+ LLDB_LOG_ERROR (GetLog (LLDBLog::DataFormatters), \
680
+ index_or_err.takeError (), " {0}" ); \
681
+ return ChildCacheState::eRefetch; \
682
+ } \
683
+ m_##Name = m_synth_frontend_up->GetChildAtIndex (*index_or_err).get (); \
680
684
} \
681
- m_##Name = m_synth_frontend_up->GetChildAtIndex (*index_or_err).get (); \
682
685
if (m_##Name) \
683
686
m_##Name->SetName (GetNameFor##Name ());
684
687
#include " URLComponents.def"
You can’t perform that action at this time.
0 commit comments