Speculative build fix for non-Windows
authorReid Kleckner <rnk@google.com>
Tue, 23 May 2017 18:28:13 +0000 (18:28 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 23 May 2017 18:28:13 +0000 (18:28 +0000)
llvm-svn: 303667

llvm/lib/DebugInfo/CodeView/TypeSerializer.cpp

index afe70a2..c667a73 100644 (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.