From b13f064b5d20ef457ddb69ee7022e27666fd6189 Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Fri, 29 Mar 2019 21:24:19 +0000 Subject: [PATCH] Fix build following r357308 : Ensure only live thunks are considered when creating import modules llvm-svn: 357316 --- lld/COFF/PDB.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp index b69eac8..c27212d 100644 --- a/lld/COFF/PDB.cpp +++ b/lld/COFF/PDB.cpp @@ -1583,6 +1583,9 @@ void PDBLinker::addImportFilesToPDB(ArrayRef OutputSections) { if (!File->ThunkSym) continue; + if (!File->ThunkLive) + continue; + std::string DLL = StringRef(File->DLLName).lower(); llvm::pdb::DbiModuleDescriptorBuilder *&Mod = DllToModuleDbi[DLL]; if (!Mod) { -- 2.7.4