From 38e59891ee4417a9be2f8146ce0ba3269e38ac21 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 14 Jul 2010 22:38:02 +0000 Subject: Don't pass StringRef by reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/StringPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support/StringPool.cpp') diff --git a/lib/Support/StringPool.cpp b/lib/Support/StringPool.cpp index 1ee917f119..ff607cf8c4 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); -- cgit v1.2.3-18-g5258