Skip to content

Commit 0252faa

Browse files
authored
Merge pull request #11610 from swiftlang/rdar161607247
[lldb] Fix assertion caused by invalid SupportFileSP (llvm#162710)
2 parents 64f1755 + 9419b7f commit 0252faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Symbol/Function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Function::~Function() = default;
280280
void Function::GetStartLineSourceInfo(SupportFileSP &source_file_sp,
281281
uint32_t &line_no) {
282282
line_no = 0;
283-
source_file_sp.reset();
283+
source_file_sp = std::make_shared<SupportFile>();
284284

285285
if (m_comp_unit == nullptr)
286286
return;

0 commit comments

Comments
 (0)