From 39bdc30ed448e0de3bdb4fc12c94c8a6b5789c0b Mon Sep 17 00:00:00 2001 From: Yang Fan Date: Fri, 29 Jan 2021 10:27:43 +0800 Subject: [PATCH] [NFC][llvm-nm] Fix unused variable warning --- tools/llvm-nm/llvm-nm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 19a7886239c..2487d3b2bd5 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -1147,7 +1147,7 @@ static char getNMSectionTagAndName(SymbolicFile &Obj, basic_symbol_iterator I, return 'U'; return isObject(Obj, I) ? 'v' : 'w'; } - if (ELFObjectFileBase *ELF = dyn_cast(&Obj)) + if (isa(&Obj)) if (ELFSymbolRef(*I).getELFType() == ELF::STT_GNU_IFUNC) return 'i'; if (!isa(Obj) && (Symflags & object::SymbolRef::SF_Weak))