[analyzer] Fix build error. NFC.
authorValeriy Savchenko <vsavchenko@apple.com>
Wed, 29 Apr 2020 12:20:57 +0000 (15:20 +0300)
committerValeriy Savchenko <vsavchenko@apple.com>
Wed, 29 Apr 2020 12:24:10 +0000 (15:24 +0300)
Move DenseMapInfo specialization to llvm namespace

clang/lib/StaticAnalyzer/Core/CallEvent.cpp

index 55d3430..cd15cd8 100644 (file)
@@ -1172,7 +1172,8 @@ struct PrivateMethodKey {
   bool IsClassMethod;
 };
 
-template <> struct llvm::DenseMapInfo<PrivateMethodKey> {
+namespace llvm {
+template <> struct DenseMapInfo<PrivateMethodKey> {
   using InterfaceInfo = DenseMapInfo<const ObjCInterfaceDecl *>;
   using SelectorInfo = DenseMapInfo<Selector>;
 
@@ -1199,6 +1200,7 @@ template <> struct llvm::DenseMapInfo<PrivateMethodKey> {
            LHS.IsClassMethod == RHS.IsClassMethod;
   }
 };
+} // end namespace llvm
 
 const ObjCMethodDecl *
 lookupRuntimeDefinition(const ObjCInterfaceDecl *Interface,