]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303667 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/CodeView/TypeSerializer.cpp

index afe70a2e8552a85964a931b6d4307ed9c38bb872..c667a73d086ecb2dc61ab6339c4cc5edf4a7be42 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.