summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-05-30 20:24:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-05-30 20:24:52 +0000
commita85e8dda54b6f9a1e57c3a9bd6afe2c9b9f24c13 (patch)
treebad30209a9cc532416e2fa7946998e91c4e5f091
parenta8217afe168b4aa02bbd395f84db0928ede61723 (diff)
downloadbcm5719-llvm-a85e8dda54b6f9a1e57c3a9bd6afe2c9b9f24c13.tar.gz
bcm5719-llvm-a85e8dda54b6f9a1e57c3a9bd6afe2c9b9f24c13.zip
Remove unnecessary cast.
llvm-svn: 304240
-rw-r--r--lld/ELF/LinkerScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 99c464e3714..2628977ac5f 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<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);
}
}
OpenPOWER on IntegriCloud