aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/TokenConcatenation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-08-11 05:10:55 +0000
committerCraig Topper <craig.topper@gmail.com>2011-08-11 05:10:55 +0000
commit03720fce6e709661af020f3e4e6dfd08a96e8044 (patch)
tree050b006b66d29f432dab09d16c1be2b39dc913d8 /lib/Lex/TokenConcatenation.cpp
parent22998ad08be18db7c2a220bbaf24de3bd1f308bb (diff)
Raw string followup. Pass a couple StringRefs by value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/TokenConcatenation.cpp')
-rw-r--r--lib/Lex/TokenConcatenation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/TokenConcatenation.cpp b/lib/Lex/TokenConcatenation.cpp
index d6f3bc493f..2940b52d68 100644
--- a/lib/Lex/TokenConcatenation.cpp
+++ b/lib/Lex/TokenConcatenation.cpp
@@ -19,7 +19,7 @@ using namespace clang;
/// IsStringPrefix - Return true if Str is a string prefix.
/// 'L', 'u', 'U', or 'u8'. Including raw versions.
-static bool IsStringPrefix(const StringRef &Str, bool CPlusPlus0x) {
+static bool IsStringPrefix(StringRef Str, bool CPlusPlus0x) {
if (Str[0] == 'L' ||
(CPlusPlus0x && (Str[0] == 'u' || Str[0] == 'U' || Str[0] == 'R'))) {