[lld] e8fd49f - [ELF] --fortran-common: remove unneeded identify_magic call. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 11:54:35 PDT 2022
Author: Fangrui Song
Date: 2022-07-22T11:54:27-07:00
New Revision: e8fd49f24b0dd8896b9789d7841bd962d0cb410c
URL: https://github.com/llvm/llvm-project/commit/e8fd49f24b0dd8896b9789d7841bd962d0cb410c
DIFF: https://github.com/llvm/llvm-project/commit/e8fd49f24b0dd8896b9789d7841bd962d0cb410c.diff
LOG: [ELF] --fortran-common: remove unneeded identify_magic call. NFC
Added:
Modified:
lld/ELF/InputFiles.cpp
Removed:
################################################################################
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index b56dd1acfc43a..c0076a3722fe4 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -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);
More information about the llvm-commits
mailing list