Skip to content

Commit 9361217

Browse files
committedMar 7, 2019
[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
1 parent 67fb9b4 commit 9361217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lld/wasm/Writer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ void Writer::assignSymtab() {
950950
};
951951

952952
for (Symbol *Sym : Symtab->getSymbols())
953-
if (Sym->IsUsedInRegularObj)
953+
if (!Sym->isLazy() && Sym->IsUsedInRegularObj)
954954
AddSymbol(Sym);
955955

956956
for (ObjFile *File : Symtab->ObjectFiles) {

0 commit comments

Comments
 (0)
Please sign in to comment.