Skip to content

Commit 4eac146

Browse files
committed
Fix buildbots after #79544
#79544
1 parent 07bf1dd commit 4eac146

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ void DWARFDebugInfo::ParseUnitsFor(DIERef::Section section) {
8888

8989
if (!expected_unit_sp) {
9090
Log *log = GetLog(DWARFLog::DebugInfo);
91-
LLDB_LOG(log, "Unable to extract DWARFUnitHeader at {0:x}: {1}",
92-
unit_header_offset, llvm::toString(expected_unit_sp.takeError()));
91+
if (log)
92+
LLDB_LOG(log, "Unable to extract DWARFUnitHeader at {0:x}: {1}",
93+
unit_header_offset,
94+
llvm::toString(expected_unit_sp.takeError()));
95+
else
96+
llvm::consumeError(expected_unit_sp.takeError());
9397
return;
9498
}
9599

0 commit comments

Comments
 (0)