From: Hubert Tong Date: Sun, 31 May 2020 20:38:10 +0000 (-0400) Subject: [Driver] NFC: Use Twine temp to replace std::string local X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c15d5d12c625df52bf82828a6af5ef2dfb6b4533;p=platform%2Fupstream%2Fllvm.git [Driver] NFC: Use Twine temp to replace std::string local This patch replaces a `std::string` local used for a concatentation with a `Twine` where the string was being passed into call. --- diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index 9a34014..ac9eb46 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -449,10 +449,9 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-export-dynamic"); if (!Args.hasArg(options::OPT_shared) && !IsStaticPIE) { - const std::string Loader = - D.DyldPrefix + ToolChain.getDynamicLinker(Args); CmdArgs.push_back("-dynamic-linker"); - CmdArgs.push_back(Args.MakeArgString(Loader)); + CmdArgs.push_back(Args.MakeArgString(Twine(D.DyldPrefix) + + ToolChain.getDynamicLinker(Args))); } }