Skip to content

Commit b0230d3

Browse files
committed
Update LineTableTest
1 parent 76d08e5 commit b0230d3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lldb/unittests/Symbol/LineTableTest.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,12 @@ CreateFakeModule(std::vector<LineTable::Sequence> line_sequences) {
176176
if (!text_sp)
177177
return createStringError("No .text");
178178

179-
auto cu_up = std::make_unique<CompileUnit>(module_sp, /*user_data=*/nullptr,
180-
/*support_file_nsp=*/nullptr,
181-
/*uid=*/0, eLanguageTypeC,
182-
/*is_optimized=*/eLazyBoolNo);
179+
auto cu_up = std::make_unique<CompileUnit>(
180+
module_sp,
181+
/*user_data=*/nullptr,
182+
/*support_file_nsp=*/std::make_shared<SupportFile>(),
183+
/*uid=*/0, eLanguageTypeC,
184+
/*is_optimized=*/eLazyBoolNo);
183185
LineTable *line_table = new LineTable(cu_up.get(), std::move(line_sequences));
184186
cu_up->SetLineTable(line_table);
185187
cast<FakeSymbolFile>(module_sp->GetSymbolFile())

0 commit comments

Comments
 (0)