[lld] r304240 - Remove unnecessary cast.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue May 30 13:24:52 PDT 2017
Author: rafael
Date: Tue May 30 15:24:52 2017
New Revision: 304240
URL: http://llvm.org/viewvc/llvm-project?rev=304240&view=rev
Log:
Remove unnecessary cast.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=304240&r1=304239&r2=304240&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue May 30 15:24:52 2017
@@ -590,7 +590,7 @@ void LinkerScript::process(BaseCommand &
// 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 &
if (!Sec->Live)
continue;
assert(CurOutSec == Sec->OutSec);
- output(cast<InputSection>(Sec));
+ output(Sec);
}
}
More information about the llvm-commits
mailing list