Skip to content

Commit 62bb648

Browse files
committed
Fix use of NonNullSharedPointer::reset()
1 parent aa6e3a2 commit 62bb648

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Target/ThreadPlanStepRange.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ bool ThreadPlanStepRange::SetNextBranchBreakpoint() {
428428
top_most_line_entry.line = call_site.GetLine();
429429
top_most_line_entry.column = call_site.GetColumn();
430430
FileSpec call_site_file_spec = call_site.GetFile();
431-
top_most_line_entry.original_file_sp.reset(
432-
new SupportFile(call_site_file_spec));
431+
top_most_line_entry.original_file_sp =
432+
std::make_shared<SupportFile>(call_site_file_spec);
433433
top_most_line_entry.range = range;
434434
top_most_line_entry.file_sp = std::make_shared<SupportFile>();
435435
top_most_line_entry.ApplyFileMappings(

0 commit comments

Comments
 (0)