1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +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:
Rodrigo Tobar 2021-09-27 23:50:09 +08:00 committed by Andreas Kling
parent 683bf558e4
commit f4ebcf4867

View file

@ -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));