diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-14 22:38:02 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-14 22:38:02 +0000 |
commit | 38e59891ee4417a9be2f8146ce0ba3269e38ac21 (patch) | |
tree | 2cbc8f9a8ce3171d4432fc6c7f4bd686aef3b49b /include/llvm/Support/StringPool.h | |
parent | d26e89dfcb592e2f51352640822d625ee560aca7 (diff) |
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 'include/llvm/Support/StringPool.h')
-rw-r--r-- | include/llvm/Support/StringPool.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. /// |