diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-03-08 14:02:46 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-03-08 14:02:46 +0000 |
| commit | 39988a03a59b8d0878934cd797956f7a928097c2 (patch) | |
| tree | d0e92446ccce5e87669dedce6afbf4ea736ca977 | |
| parent | 77b93ad471b42b08cd4919ef76ce4b4526cc3966 (diff) | |
| download | bcm5719-llvm-39988a03a59b8d0878934cd797956f7a928097c2.tar.gz bcm5719-llvm-39988a03a59b8d0878934cd797956f7a928097c2.zip | |
[gold] Avoid assertion failures when taking a pointer to an empty vector.
llvm-svn: 262926
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 788df0e7093..6e0a6904dfb 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -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; |

