[llvm] r303667 - Speculative build fix for non-Windows

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 11:28:14 PDT 2017


Author: rnk
Date: Tue May 23 13:28:13 2017
New Revision: 303667

URL: http://llvm.org/viewvc/llvm-project?rev=303667&view=rev
Log:
Speculative build fix for non-Windows

Modified:
    llvm/trunk/lib/DebugInfo/CodeView/TypeSerializer.cpp

Modified: llvm/trunk/lib/DebugInfo/CodeView/TypeSerializer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/CodeView/TypeSerializer.cpp?rev=303667&r1=303666&r2=303667&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/CodeView/TypeSerializer.cpp (original)
+++ llvm/trunk/lib/DebugInfo/CodeView/TypeSerializer.cpp Tue May 23 13:28:13 2017
@@ -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<HashedTy
     return ::memcmp(LHS->Data, RHS->Data, LHS->Size) == 0;
   }
 };
+}
 
 /// Private implementation so that we don't leak our DenseMap instantiations to
 /// users.




More information about the llvm-commits mailing list