diff options
Diffstat (limited to 'lld/ELF/Driver.cpp')
-rw-r--r-- | lld/ELF/Driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 263ba7b9e2b..a52693b0537 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -942,8 +942,8 @@ static void excludeLibs(opt::InputArgList &Args, ArrayRef<InputFile *> Files) { for (InputFile *File : Files) if (auto *F = dyn_cast<ArchiveFile>(File)) if (All || Libs.count(path::filename(F->getName()))) - for (Symbol *Sym : F->getSymbols()) - Sym->VersionId = VER_NDX_LOCAL; + for (SymbolBody *Sym : F->getSymbols()) + Sym->symbol()->VersionId = VER_NDX_LOCAL; } // Do actual linking. Note that when this function is called, |