Author: Greg Clayton
Date: 2024-02-01T15:26:26-08:00
New Revision: 4eac14683855e040adaf507ed6b14e28a09f983e

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

LOG: Fix buildbots after #79544

https://github.com/llvm/llvm-project/pull/79544

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp 
b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
index 6bcf95c11a65c..44febcfac3b00 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
@@ -88,8 +88,12 @@ void DWARFDebugInfo::ParseUnitsFor(DIERef::Section section) {
 
     if (!expected_unit_sp) {
       Log *log = GetLog(DWARFLog::DebugInfo);
-      LLDB_LOG(log, "Unable to extract DWARFUnitHeader at {0:x}: {1}",
-               unit_header_offset, 
llvm::toString(expected_unit_sp.takeError()));
+      if (log)
+        LLDB_LOG(log, "Unable to extract DWARFUnitHeader at {0:x}: {1}",
+                 unit_header_offset,
+                 llvm::toString(expected_unit_sp.takeError()));
+      else
+        llvm::consumeError(expected_unit_sp.takeError());
       return;
     }
 


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to