[ADT] Fix StringSet::insert() to not allocate on every lookup.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 15 Mar 2013 20:16:59 +0000 (20:16 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 15 Mar 2013 20:16:59 +0000 (20:16 +0000)
commit3145eb8e543bb65acf626b472975004d086f50da
treebda4691f2f6d234ce2225cc97c58c385c8c4fc21
parent34794c5b3dd3bbb3ba1fc6632b66663c0e497e0b
[ADT] Fix StringSet::insert() to not allocate on every lookup.
 - The previous implementation always constructed the StringMap entry, even if
   the key was present in the set.

llvm-svn: 177178
llvm/include/llvm/ADT/StringSet.h