summaryrefslogtreecommitdiff
path: root/lldb/unittests/Symbol/LineTableTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/Symbol/LineTableTest.cpp')
-rw-r--r--lldb/unittests/Symbol/LineTableTest.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/unittests/Symbol/LineTableTest.cpp b/lldb/unittests/Symbol/LineTableTest.cpp
index eadab40a37fa..ca63c6ff51da 100644
--- a/lldb/unittests/Symbol/LineTableTest.cpp
+++ b/lldb/unittests/Symbol/LineTableTest.cpp
@@ -176,10 +176,12 @@ Sections:
if (!text_sp)
return createStringError("No .text");
- auto cu_up = std::make_unique<CompileUnit>(module_sp, /*user_data=*/nullptr,
- /*support_file_sp=*/nullptr,
- /*uid=*/0, eLanguageTypeC,
- /*is_optimized=*/eLazyBoolNo);
+ auto cu_up = std::make_unique<CompileUnit>(
+ module_sp,
+ /*user_data=*/nullptr,
+ /*support_file_nsp=*/std::make_shared<SupportFile>(),
+ /*uid=*/0, eLanguageTypeC,
+ /*is_optimized=*/eLazyBoolNo);
LineTable *line_table = new LineTable(cu_up.get(), std::move(line_sequences));
cu_up->SetLineTable(line_table);
cast<FakeSymbolFile>(module_sp->GetSymbolFile())