Remove unnecessary cast.

llvm-svn: 304240
This commit is contained in:
Rafael Espindola 2017-05-30 20:24:52 +00:00
parent a8217afe16
commit a85e8dda54
1 changed files with 2 additions and 2 deletions

View File

@ -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<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 @@ void LinkerScript::process(BaseCommand &Base) {
if (!Sec->Live)
continue;
assert(CurOutSec == Sec->OutSec);
output(cast<InputSection>(Sec));
output(Sec);
}
}