[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)
commitdfe91cefd25614bc9ac1626d67df4d5ad5d3553f
tree9b28cdc2b33c84d6e2c63bd46e07ca5cc1694a8d
parent1f81ebcbae0a319a9a62c3a29b4519e4ea40333e
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177178 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringSet.h