Index: wasm/Writer.cpp =================================================================== --- wasm/Writer.cpp +++ wasm/Writer.cpp @@ -693,8 +693,7 @@ for (Symbol *Sym : File->getSymbols()) { if (Sym->getFile() != File) continue; - if (!Sym->isLive()) - return; + assert(Sym->isLive()); Sym->setOutputSymbolIndex(SymbolIndex++); SymtabEntries.emplace_back(Sym); } @@ -849,7 +848,6 @@ // in input object. void Writer::createCtorFunction() { uint32_t FunctionIndex = NumImportedFunctions + InputFunctions.size(); - WasmSym::CallCtors->setOutputIndex(FunctionIndex); // First write the body's contents to a string. std::string BodyContent;