From 4cf6e73f51b33e252cdad17bc03f487f17418941 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 --- include/llvm/Support/StringPool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Support/StringPool.h') diff --git a/include/llvm/Support/StringPool.h b/include/llvm/Support/StringPool.h index 82e46d42c6..de05e0b547 100644 --- a/include/llvm/Support/StringPool.h +++ b/include/llvm/Support/StringPool.h @@ -64,7 +64,7 @@ namespace llvm { /// intern - Adds a string to the pool and returns a reference-counted /// pointer to it. No additional memory is allocated if the string already /// exists in the pool. - PooledStringPtr intern(const StringRef &Str); + PooledStringPtr intern(StringRef Str); /// empty - Checks whether the pool is empty. Returns true if so. /// -- cgit v1.2.3