aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/StringPool.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-07-14 22:38:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-07-14 22:38:02 +0000
commit38e59891ee4417a9be2f8146ce0ba3269e38ac21 (patch)
tree2cbc8f9a8ce3171d4432fc6c7f4bd686aef3b49b /lib/Support/StringPool.cpp
parentd26e89dfcb592e2f51352640822d625ee560aca7 (diff)
downloadexternal_llvm-38e59891ee4417a9be2f8146ce0ba3269e38ac21.zip
external_llvm-38e59891ee4417a9be2f8146ce0ba3269e38ac21.tar.gz
external_llvm-38e59891ee4417a9be2f8146ce0ba3269e38ac21.tar.bz2
Don't pass StringRef by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/StringPool.cpp')
-rw-r--r--lib/Support/StringPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/StringPool.cpp b/lib/Support/StringPool.cpp
index 1ee917f..ff607cf 100644
--- a/lib/Support/StringPool.cpp
+++ b/lib/Support/StringPool.cpp
@@ -22,7 +22,7 @@ StringPool::~StringPool() {
assert(InternTable.empty() && "PooledStringPtr leaked!");
}
-PooledStringPtr StringPool::intern(const StringRef &Key) {
+PooledStringPtr StringPool::intern(StringRef Key) {
table_t::iterator I = InternTable.find(Key);
if (I != InternTable.end())
return PooledStringPtr(&*I);