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

Krzysztof Parzyszek via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 6 06:13:12 PST 2016


Author: kparzysz
Date: Wed Jan  6 08:13:11 2016
New Revision: 256934

URL: http://llvm.org/viewvc/llvm-project?rev=256934&view=rev
Log:
[Hexagon] Use back_inserter as target iterator in std::copy

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=256934&r1=256933&r2=256934&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Jan  6 08:13:11 2016
@@ -2611,7 +2611,8 @@ void HexagonToolChain::getHexagonLibrary
   // Other standard paths
   //----------------------------------------------------------------------------
   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(),
                                               D.PrefixDirs);




More information about the cfe-commits mailing list