[lld] r307209 - Remove two dummy casts. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 5 15:07:20 PDT 2017


Author: rafael
Date: Wed Jul  5 15:07:20 2017
New Revision: 307209

URL: http://llvm.org/viewvc/llvm-project?rev=307209&view=rev
Log:
Remove two dummy casts. NFC.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=307209&r1=307208&r2=307209&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Jul  5 15:07:20 2017
@@ -872,13 +872,13 @@ template <class ELFT> void Writer<ELFT>:
 // __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.




More information about the llvm-commits mailing list