From a85e8dda54b6f9a1e57c3a9bd6afe2c9b9f24c13 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 30 May 2017 20:24:52 +0000 Subject: [PATCH] Remove unnecessary cast. llvm-svn: 304240 --- lld/ELF/LinkerScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 99c464e..2628977 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -590,7 +590,7 @@ void LinkerScript::process(BaseCommand &Base) { // It calculates and assigns the offsets for each section and also // updates the output section size. auto &Cmd = cast(Base); - for (InputSectionBase *Sec : Cmd.Sections) { + for (InputSection *Sec : Cmd.Sections) { // We tentatively added all synthetic sections at the beginning and removed // empty ones afterwards (because there is no way to know whether they were // going be empty or not other than actually running linker scripts.) @@ -602,7 +602,7 @@ void LinkerScript::process(BaseCommand &Base) { if (!Sec->Live) continue; assert(CurOutSec == Sec->OutSec); - output(cast(Sec)); + output(Sec); } } -- 2.7.4