Fix build following r357308 : Ensure only live thunks are considered when creating import modules

llvm-svn: 357316
This commit is contained in:
Alexandre Ganea 2019-03-29 21:24:19 +00:00
parent e589067e61
commit b13f064b5d
1 changed files with 3 additions and 0 deletions

View 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) {