From 9361217ea2d60c316dbc4d5ec9d0dff76c04c2b9 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 7 Mar 2019 04:20:04 +0000 Subject: [PATCH] [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 --- lld/wasm/Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index 0082ae3a48d5..f5ff3023a294 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -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) {