From 2beabc9be5088c36dae9d6229181ec11d1406565 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 22 Oct 2015 23:10:25 +0000 Subject: [PATCH] ELF2: SymbolBody::repl() never returns a nullptr. So we can use dyn_cast instead of dyn_cast_or_null here. llvm-svn: 251076 --- lld/ELF/MarkLive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; -- 2.7.4