Update symbols_with_libdwarf.cpp

This commit is contained in:
Infko 2024-06-05 09:51:50 +08:00 committed by GitHub
parent 49f8315cbf
commit 689c275a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,8 @@ namespace libdwarf {
// .emplace needed, for some reason .insert tries to copy <= gcc 7.2
return resolver_map.emplace(object_name, std::move(resolver_object)).first->second.get();
} else {
// gcc cannot handle the following logic properly in <= gcc 5.1, so the type to be constructed is explicitly specified.
// See also:https://godbolt.org/z/9oWdWjbf8
return maybe_owned<symbol_resolver>{std::move(resolver_object)};
}
}