Fix build following r357308 : Ensure only live thunks are considered when creating...
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 29 Mar 2019 21:24:19 +0000 (21:24 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Fri, 29 Mar 2019 21:24:19 +0000 (21:24 +0000)
llvm-svn: 357316

lld/COFF/PDB.cpp

index b69eac8..c27212d 100644 (file)
@@ -1583,6 +1583,9 @@ void PDBLinker::addImportFilesToPDB(ArrayRef<OutputSection *> OutputSections) {
     if (!File->ThunkSym)
       continue;
 
+    if (!File->ThunkLive)
+        continue;
+
     std::string DLL = StringRef(File->DLLName).lower();
     llvm::pdb::DbiModuleDescriptorBuilder *&Mod = DllToModuleDbi[DLL];
     if (!Mod) {