From: Rafael Espindola Date: Fri, 11 Mar 2016 13:17:15 +0000 (+0000) Subject: Remove a redundant cast. X-Git-Tag: llvmorg-3.9.0-rc1~11978 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e90611ed264dc316609e508b00a5eac3c0d936e;p=platform%2Fupstream%2Fllvm.git Remove a redundant cast. llvm-svn: 263230 --- 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;