mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Don't pass StringRef by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user