Speculative build fix for non-Windows

llvm-svn: 303667
This commit is contained in:
Reid Kleckner 2017-05-23 18:28:13 +00:00
parent 74fa80399a
commit 36238b15d7
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ struct HashedTypePtr {
};
} // namespace
namespace llvm {
template <> struct DenseMapInfo<HashedTypePtr> {
static inline HashedTypePtr getEmptyKey() { return HashedTypePtr(nullptr); }
static inline HashedTypePtr getTombstoneKey() {
@ -53,6 +54,7 @@ template <> struct DenseMapInfo<HashedTypePtr> {
return ::memcmp(LHS->Data, RHS->Data, LHS->Size) == 0;
}
};
}
/// Private implementation so that we don't leak our DenseMap instantiations to
/// users.