mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibSymbolication: Return empty value on error
This was probably the intended behavior, but a return statement was missing.
This commit is contained in:
parent
683bf558e4
commit
f4ebcf4867
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ Optional<Symbol> symbolicate(String const& path, FlatPtr address)
|
|||
if (!elf->is_valid()) {
|
||||
dbgln("ELF not valid: {}", path);
|
||||
s_cache.set(path, {});
|
||||
{};
|
||||
return {};
|
||||
}
|
||||
auto cached_elf = make<CachedELF>(mapped_file.release_value(), make<Debug::DebugInfo>(*elf), move(elf));
|
||||
s_cache.set(path, move(cached_elf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue