Skip to content

Commit

Permalink
[lldb] Fix compile failure on SymbolFileDWARFTests.cpp with gcc
Browse files Browse the repository at this point in the history
We need to explicitly specify template argument for llvm::ArrayRef when building with gcc.
  • Loading branch information
ZequanWu committed Oct 2, 2024
1 parent d24fdce commit e379b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ TEST_F(SymbolFileDWARFTests, ParseArangesNonzeroSegmentSize) {
// END TUPLES
0, 0, 0, 0, 0, 0, 0, 0, 0 // terminator
};
llvm::DWARFDataExtractor data(llvm::ArrayRef(binary_data),
llvm::DWARFDataExtractor data(llvm::ArrayRef<unsigned char>(binary_data),
/*isLittleEndian=*/false, /*AddrSize=*/4);

DWARFDebugArangeSet debug_aranges;
Expand Down

0 comments on commit e379b4b

Please sign in to comment.