diff --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp index 2e2310a94c74..ef6053297328 100644 --- a/lldb/tools/lldb-test/lldb-test.cpp +++ b/lldb/tools/lldb-test/lldb-test.cpp @@ -846,7 +846,7 @@ static void dumpSectionList(LinePrinter &Printer, const SectionList &List, bool if (opts::object::SectionContents) { lldb_private::DataExtractor Data; S->GetSectionData(Data); - ArrayRef Bytes = {Data.GetDataStart(), Data.GetDataEnd()}; + ArrayRef Bytes(Data.GetDataStart(), Data.GetDataEnd()); Printer.formatBinary("Data: ", Bytes, 0); }