[Lldb-commits] [lldb] e379b4b - [lldb] Fix compile failure on SymbolFileDWARFTests.cpp with gcc

Zequan Wu via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 2 14:11:29 PDT 2024


Author: Zequan Wu
Date: 2024-10-02T14:11:04-07:00
New Revision: e379b4b67f760e743d8bc826cc6de00a27109dbd

URL: https://github.com/llvm/llvm-project/commit/e379b4b67f760e743d8bc826cc6de00a27109dbd
DIFF: https://github.com/llvm/llvm-project/commit/e379b4b67f760e743d8bc826cc6de00a27109dbd.diff

LOG: [lldb] Fix compile failure on SymbolFileDWARFTests.cpp with gcc

We need to explicitly specify template argument for llvm::ArrayRef when building with gcc.

Added: 
    

Modified: 
    lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp b/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
index f9e869297bfb06..37ecfea26f36cc 100644
--- a/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
+++ b/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
@@ -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;


        


More information about the lldb-commits mailing list