Fix `-Wunused-variable`. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Sat, 14 Mar 2020 00:50:35 +0000 (20:50 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Sat, 14 Mar 2020 00:54:22 +0000 (20:54 -0400)
llvm/tools/llvm-objdump/llvm-objdump.cpp

index 4aad0b9..69f437f 100644 (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)