Skip to content

Commit 1a10d6b

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)