[PATCH] D95656: [NFC][llvm-nm] Fix unused variable warning
Yang Fan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 18:29:08 PST 2021
nullptr.cpp created this revision.
Herald added a subscriber: rupprecht.
Herald added a reviewer: jhenderson.
nullptr.cpp requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95656
Files:
llvm/tools/llvm-nm/llvm-nm.cpp
Index: llvm/tools/llvm-nm/llvm-nm.cpp
===================================================================
--- llvm/tools/llvm-nm/llvm-nm.cpp
+++ llvm/tools/llvm-nm/llvm-nm.cpp
@@ -1147,7 +1147,7 @@
return 'U';
return isObject(Obj, I) ? 'v' : 'w';
}
- if (ELFObjectFileBase *ELF = dyn_cast<ELFObjectFileBase>(&Obj))
+ if (dyn_cast<ELFObjectFileBase>(&Obj))
if (ELFSymbolRef(*I).getELFType() == ELF::STT_GNU_IFUNC)
return 'i';
if (!isa<MachOObjectFile>(Obj) && (Symflags & object::SymbolRef::SF_Weak))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95656.320017.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210129/c001f586/attachment.bin>
More information about the llvm-commits
mailing list