mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[gold] Avoid assertion failures when taking a pointer to an empty vector.
llvm-svn: 262926
This commit is contained in:
parent
212d6764b8
commit
4bc5894482
@ -620,7 +620,7 @@ static void freeSymName(ld_plugin_symbol &Sym) {
|
||||
|
||||
/// Helper to get a file's symbols and a view into it via gold callbacks.
|
||||
static const void *getSymbolsAndView(claimed_file &F) {
|
||||
ld_plugin_status status = get_symbols(F.handle, F.syms.size(), &F.syms[0]);
|
||||
ld_plugin_status status = get_symbols(F.handle, F.syms.size(), F.syms.data());
|
||||
if (status == LDPS_NO_SYMS)
|
||||
return nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user