[Hexagon] Use back_inserter as target iterator in std::copy

llvm-svn: 256934
This commit is contained in:
Krzysztof Parzyszek 2016-01-06 14:13:11 +00:00
parent ee8fb302f5
commit f4467cd1cd
1 changed files with 2 additions and 1 deletions

View File

@ -2611,7 +2611,8 @@ void HexagonToolChain::getHexagonLibraryPaths(const ArgList &Args,
// Other standard paths // Other standard paths
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
std::vector<std::string> RootDirs; std::vector<std::string> RootDirs;
std::copy(D.PrefixDirs.begin(), D.PrefixDirs.end(), RootDirs.begin()); std::copy(D.PrefixDirs.begin(), D.PrefixDirs.end(),
std::back_inserter(RootDirs));
std::string TargetDir = getHexagonTargetDir(D.getInstalledDir(), std::string TargetDir = getHexagonTargetDir(D.getInstalledDir(),
D.PrefixDirs); D.PrefixDirs);