Index: lib/LTO/LTO.cpp =================================================================== --- lib/LTO/LTO.cpp +++ lib/LTO/LTO.cpp @@ -337,8 +337,6 @@ addSymbolToGlobalRes(Obj.get(), Used, Sym, Res, 0); GlobalValue *GV = Obj->getSymbolGV(Sym.I->getRawDataRefImpl()); - if (Sym.getFlags() & object::BasicSymbolRef::SF_Undefined) - continue; if (Res.Prevailing && GV) { Keep.push_back(GV); switch (GV->getLinkage()) {