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