We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07bf1dd commit 4eac146Copy full SHA for 4eac146
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
@@ -88,8 +88,12 @@ void DWARFDebugInfo::ParseUnitsFor(DIERef::Section section) {
88
89
if (!expected_unit_sp) {
90
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()));
+ if (log)
+ 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());
97
return;
98
}
99
0 commit comments