From dd28883f1158a424c885abc3ab8a8c3cdadef053 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 21 Sep 2015 00:20:04 +0000 Subject: [PATCH] Don't pass StringRefs around by const reference. Pass by value instead per coding standards. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248137 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 401975ddb2..cd1dd73c8e 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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); -- 2.50.1