]> granicus.if.org Git - clang/commitdiff
Don't pass StringRefs around by const reference. Pass by value instead per coding...
authorCraig Topper <craig.topper@gmail.com>
Mon, 21 Sep 2015 00:20:04 +0000 (00:20 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 21 Sep 2015 00:20:04 +0000 (00:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248137 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 401975ddb29e90bb7cc641ce637e1044de68c01c..cd1dd73c8eb3a80cfd609d941ea33149460dcace 100644 (file)
@@ -1670,7 +1670,7 @@ static void AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
 /// parameter in reciprocal argument strings. Return false if there is an error
 /// parsing the refinement step. Otherwise, return true and set the Position
 /// of the refinement step in the input string.
-static bool getRefinementStep(const StringRef &In, const Driver &D,
+static bool getRefinementStep(StringRef In, const Driver &D,
                               const Arg &A, size_t &Position) {
   const char RefinementStepToken = ':';
   Position = In.find(RefinementStepToken);