[WebAssembly] Fix build after rL355577

Turns own that IsUsedInRegularObject is set for lazy (archive) symbols.

Differential Revision: https://reviews.llvm.org/D59074

llvm-svn: 355580
This commit is contained in:
Sam Clegg 2019-03-07 04:20:04 +00:00
parent 67fb9b4a31
commit 9361217ea2

View file

@ -950,7 +950,7 @@ void Writer::assignSymtab() {
};
for (Symbol *Sym : Symtab->getSymbols())
if (Sym->IsUsedInRegularObj)
if (!Sym->isLazy() && Sym->IsUsedInRegularObj)
AddSymbol(Sym);
for (ObjFile *File : Symtab->ObjectFiles) {