Skip to content

Commit

Permalink
[WebAssembly] Fix build after rL355577
Browse files Browse the repository at this point in the history
Turns own that IsUsedInRegularObject is set for lazy (archive) symbols.

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

llvm-svn: 355580
  • Loading branch information
sbc100 committed Mar 7, 2019
1 parent 67fb9b4 commit 9361217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/wasm/Writer.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 9361217

Please sign in to comment.