File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 77#include " lldb/Target/StackFrameRecognizer.h"
88#include " lldb/Target/Target.h"
99#include " lldb/Target/Thread.h"
10-
1110#include " lldb/Utility/LLDBLog.h"
1211#include " lldb/Utility/Log.h"
12+ #include " lldb/Utility/SupportFile.h"
1313
1414#include " Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.h"
1515#include " Plugins/TypeSystem/Swift/SwiftDemangle.h"
@@ -197,13 +197,13 @@ class SwiftHiddenFrameRecognizer : public StackFrameRecognizer {
197197 if (!sc.function )
198198 return {};
199199
200- SupportFileSP source_file_sp ;
200+ SupportFileNSP source_file_nsp = std::make_shared<SupportFile>() ;
201201 uint32_t line_no;
202- sc.function ->GetStartLineSourceInfo (source_file_sp , line_no);
202+ sc.function ->GetStartLineSourceInfo (source_file_nsp , line_no);
203203 // FIXME: these <compiler-generated> frames should be marked artificial
204204 // by the Swift compiler.
205- if (source_file_sp &&
206- source_file_sp-> GetSpecOnly (). GetFilename () == " <compiler-generated>" &&
205+ if (source_file_nsp-> GetSpecOnly (). GetFilename () ==
206+ " <compiler-generated>" &&
207207 line_no == 0 )
208208 return m_hidden_frame;
209209
Original file line number Diff line number Diff line change @@ -700,9 +700,9 @@ GetFuncToLocalVariablesMap(llvm::ArrayRef<Function *> funcs) {
700700
701701// / Returns the first line associated with `function`.
702702static uint32_t GetLineNumberForFunction (Function &function) {
703- SupportFileSP func_decl_file_sp ;
703+ SupportFileNSP func_decl_file_nsp = std::make_shared<SupportFile>() ;
704704 uint32_t line_num = 0 ;
705- function.GetStartLineSourceInfo (func_decl_file_sp , line_num);
705+ function.GetStartLineSourceInfo (func_decl_file_nsp , line_num);
706706 return line_num;
707707}
708708
You can’t perform that action at this time.
0 commit comments