[lld][ELF] Simplify handleLibcall. NFC (#78659)

I noticed this while working on #78658
This commit is contained in:
Sam Clegg 2024-01-19 12:39:35 -08:00 committed by GitHub
parent 2c0d20668a
commit f5e58a0380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2081,13 +2081,7 @@ static void handleUndefinedGlob(StringRef arg) {
static void handleLibcall(StringRef name) {
Symbol *sym = symtab.find(name);
if (!sym || !sym->isLazy())
return;
MemoryBufferRef mb;
mb = cast<LazyObject>(sym)->file->mb;
if (isBitcode(mb))
if (sym && sym->isLazy() && isa<BitcodeFile>(sym->file))
sym->extract();
}