mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibDebug: Propagate errors around LineProgram
Found while playing Fixme-Roulette.
This commit is contained in:
parent
4093952a6e
commit
c5d3de3f7d
3 changed files with 18 additions and 8 deletions
|
@ -59,7 +59,7 @@ ErrorOr<void> DwarfInfo::populate_compilation_units()
|
|||
|
||||
u32 length_after_header = compilation_unit_header.length() - (compilation_unit_header.header_size() - offsetof(CompilationUnitHeader, common.version));
|
||||
|
||||
auto line_program = make<LineProgram>(*this, line_info_stream);
|
||||
auto line_program = TRY(LineProgram::create(*this, line_info_stream));
|
||||
|
||||
// HACK: Clang generates line programs for embedded resource assembly files, but not compile units.
|
||||
// Meaning that for graphical applications, some line info data would be unread, triggering the assertion below.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue