1
0
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:
Benjamin Kramer 2016-03-08 14:02:46 +00:00
parent 212d6764b8
commit 4bc5894482

View File

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