summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 85ae354e423..e4ad76df21d 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -872,13 +872,13 @@ template <class ELFT> void Writer<ELFT>::addReservedSymbols() {
// __attribute__((init_priority(N))).
static void sortInitFini(OutputSection *S) {
if (S)
- reinterpret_cast<OutputSection *>(S)->sortInitFini();
+ S->sortInitFini();
}
// Sort input sections by the special rule for .ctors and .dtors.
static void sortCtorsDtors(OutputSection *S) {
if (S)
- reinterpret_cast<OutputSection *>(S)->sortCtorsDtors();
+ S->sortCtorsDtors();
}
// Sort input sections using the list provided by --symbol-ordering-file.
OpenPOWER on IntegriCloud