From: Rui Ueyama Date: Thu, 22 Oct 2015 23:10:25 +0000 (+0000) Subject: ELF2: SymbolBody::repl() never returns a nullptr. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2beabc9be5088c36dae9d6229181ec11d1406565;p=platform%2Fupstream%2Fllvm.git ELF2: SymbolBody::repl() never returns a nullptr. So we can use dyn_cast instead of dyn_cast_or_null here. llvm-svn: 251076 --- diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index 8f255e2..db41153 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -102,7 +102,7 @@ template void lld::elf2::markLive(SymbolTable *Symtab) { auto MarkSymbol = [&](SymbolBody *Sym) { if (Sym) - if (auto *D = dyn_cast_or_null>(Sym->repl())) + if (auto *D = dyn_cast>(Sym->repl())) Enqueue(&D->Section); };