forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
403d5a5e35
commit
c15d5d12c6
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue