Skip to content

Commit fdb7858

Browse files
committed
[LLDB] Swift: Adjust call to Function::GetStartLineSourceInfo (parameter type changed)
Per 39b2979.
1 parent da89289 commit fdb7858

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/source/Plugins/Language/Swift/SwiftFrameRecognizers.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,13 @@ 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->GetSpecOnly().GetFilename() == "<compiler-generated>" &&
206+
line_no == 0)
206207
return m_hidden_frame;
207208

208209
auto symbol_name =

0 commit comments

Comments
 (0)