[lld] r299740 - Remove unnecessary cast.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 18:25:01 PDT 2017


Author: rafael
Date: Thu Apr  6 20:25:01 2017
New Revision: 299740

URL: http://llvm.org/viewvc/llvm-project?rev=299740&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=299740&r1=299739&r2=299740&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Thu Apr  6 20:25:01 2017
@@ -333,7 +333,7 @@ LinkerScript::createInputSectionList(Out
 
     Cmd->Sections = computeInputSections(Cmd);
     for (InputSectionBase *S : Cmd->Sections)
-      Ret.push_back(static_cast<InputSectionBase *>(S));
+      Ret.push_back(S);
   }
 
   return Ret;




More information about the llvm-commits mailing list