[ELF] --fortran-common: remove unneeded identify_magic call. NFC

This commit is contained in:
Fangrui Song 2022-07-22 11:54:27 -07:00
parent 58e6ee0e1f
commit e8fd49f24b
1 changed files with 1 additions and 1 deletions

View File

@ -1756,7 +1756,7 @@ template <class ELFT> void ObjFile<ELFT>::parseLazy() {
}
bool InputFile::shouldExtractForCommon(StringRef name) {
if (isBitcode(mb))
if (isa<BitcodeFile>(this))
return isBitcodeNonCommonDef(mb, name, archiveName);
return isNonCommonDef(mb, name, archiveName);