X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FStringPool.cpp;h=ff607cf8c4adddee0547868a6b03567febc77185;hb=7cc5f793bc858e4be4fbf532942d14013f123e55;hp=1ee917f119f7e446538cfa395715043f9bf93877;hpb=cfa6ec92e61a1ab040c2b79db5de3a39df732ff6;p=oota-llvm.git diff --git a/lib/Support/StringPool.cpp b/lib/Support/StringPool.cpp index 1ee917f119f..ff607cf8c4a 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);