Remove unnecessary cast.
llvm-svn: 304240
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 @@
// It calculates and assigns the offsets for each section and also
// updates the output section size.
auto &Cmd = cast<InputSectionDescription>(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 @@
if (!Sec->Live)
continue;
assert(CurOutSec == Sec->OutSec);
- output(cast<InputSection>(Sec));
+ output(Sec);
}
}