Fix `-Wunused-variable`. NFC.

This commit is contained in:
Michael Liao 2020-03-13 20:50:35 -04:00
parent 9c5d0ea678
commit 7c504548ca
1 changed files with 1 additions and 1 deletions

View File

@ -1900,7 +1900,7 @@ void printSymbolTable(const ObjectFile *O, StringRef ArchiveName,
if ((Section != O->section_end() || Absolute) && !Weak)
GlobLoc = Global ? 'g' : 'l';
char IFunc = ' ';
if (auto *ELF = dyn_cast<ELFObjectFileBase>(O)) {
if (isa<ELFObjectFileBase>(O)) {
if (ELFSymbolRef(*I).getELFType() == ELF::STT_GNU_IFUNC)
IFunc = 'i';
if (ELFSymbolRef(*I).getBinding() == ELF::STB_GNU_UNIQUE)