File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
lldb/source/Plugins/Language/Swift Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -197,12 +197,14 @@ class SwiftHiddenFrameRecognizer : public StackFrameRecognizer {
197197 if (!sc.function )
198198 return {};
199199
200- FileSpec source_file ;
200+ SupportFileSP source_file_sp ;
201201 uint32_t line_no;
202- sc.function ->GetStartLineSourceInfo (source_file , line_no);
202+ sc.function ->GetStartLineSourceInfo (source_file_sp , line_no);
203203 // FIXME: these <compiler-generated> frames should be marked artificial
204204 // by the Swift compiler.
205- if (source_file.GetFilename () == " <compiler-generated>" && line_no == 0 )
205+ if (source_file_sp &&
206+ source_file_sp->GetSpecOnly ().GetFilename () == " <compiler-generated>" &&
207+ line_no == 0 )
206208 return m_hidden_frame;
207209
208210 auto symbol_name =
You can’t perform that action at this time.
0 commit comments