[lld] r299740 - Remove unnecessary cast.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 18:44:52 PDT 2017


Then it can just be something like `Ret.insert(Ret.end(),
Cmd->Sections.begin(), Cmd->Sections.end());` now?

On Thu, Apr 6, 2017 at 6:25 PM, Rafael Espindola via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> 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;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170406/0a8d1daa/attachment.html>


More information about the llvm-commits mailing list