We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0d206 commit f5e58a0Copy full SHA for f5e58a0
lld/ELF/Driver.cpp
@@ -2081,13 +2081,7 @@ static void handleUndefinedGlob(StringRef arg) {
2081
2082
static void handleLibcall(StringRef name) {
2083
Symbol *sym = symtab.find(name);
2084
- if (!sym || !sym->isLazy())
2085
- return;
2086
-
2087
- MemoryBufferRef mb;
2088
- mb = cast<LazyObject>(sym)->file->mb;
2089
2090
- if (isBitcode(mb))
+ if (sym && sym->isLazy() && isa<BitcodeFile>(sym->file))
2091
sym->extract();
2092
}
2093
0 commit comments