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
Notes: sideshowbarker 2024-07-18 03:23:45 +09:00

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