Resolver: Fix incorrect DenseMap mapping info.
authorRui Ueyama <ruiu@google.com>
Mon, 9 Mar 2015 02:00:54 +0000 (02:00 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 9 Mar 2015 02:00:54 +0000 (02:00 +0000)
commit4cefbd8b7209d1b82c4c811ecd6421f516b93107
treefa6bba162c19857540c79b1366305d73fa118f0d
parentdc3f01e9cfc098bb2a55b103396eb3f0464b0c7a
Resolver: Fix incorrect DenseMap mapping info.

Previously, getEmptyKey and getTombstoneKey return the same value
in the sense of isEqual defined by the same class, although they
need to be distinct values. This could confuse DenseMap.

We didn't see any issue by this wrong code because we don't delete
elements from the symbol table. We only add or replace elements.
But this is a bug and needs to be fixed anyway.

llvm-svn: 231618
lld/include/lld/Core/SymbolTable.h