[LLD] [COFF] Fix a condition that was missed in 7f0e6c31c2. NFC.

This should fix cases when e.g. auto import is enabled without
mingw mode in total being enabled.

Differential Revision: https://reviews.llvm.org/D89006
This commit is contained in:
Martin Storsjö 2020-10-07 10:46:29 +03:00
parent 7c6bfd90ab
commit 9803cf57d6
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ void SymbolTable::reportUnresolvable() {
}
if (name.contains("_PchSym_"))
continue;
if (config->mingw && impSymbol(name))
if (config->autoImport && impSymbol(name))
continue;
undefs.insert(sym);
}