From 4e90611ed264dc316609e508b00a5eac3c0d936e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 11 Mar 2016 13:17:15 +0000 Subject: [PATCH] Remove a redundant cast. llvm-svn: 263230 --- lld/ELF/Writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 7c5c336..8c1a50c 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -548,8 +548,8 @@ template void Writer::copyLocalSymbols() { return; for (const std::unique_ptr> &F : Symtab.getObjectFiles()) { for (SymbolBody *B : F->getLocalSymbols()) { - auto *L = dyn_cast>(B); - const Elf_Sym &Sym = cast>(B)->Sym; + auto *L = cast>(B); + const Elf_Sym &Sym = L->Sym; StringRef SymName = check(Sym.getName(F->getStringTable())); if (!shouldKeepInSymtab(*F, SymName, Sym)) continue; -- 2.7.4