diff --git a/clang/lib/StaticAnalyzer/Core/CallEvent.cpp b/clang/lib/StaticAnalyzer/Core/CallEvent.cpp index 55d34304834569..cd15cd872d9de5 100644 --- a/clang/lib/StaticAnalyzer/Core/CallEvent.cpp +++ b/clang/lib/StaticAnalyzer/Core/CallEvent.cpp @@ -1172,7 +1172,8 @@ struct PrivateMethodKey { bool IsClassMethod; }; -template <> struct llvm::DenseMapInfo { +namespace llvm { +template <> struct DenseMapInfo { using InterfaceInfo = DenseMapInfo; using SelectorInfo = DenseMapInfo; @@ -1199,6 +1200,7 @@ template <> struct llvm::DenseMapInfo { LHS.IsClassMethod == RHS.IsClassMethod; } }; +} // end namespace llvm const ObjCMethodDecl * lookupRuntimeDefinition(const ObjCInterfaceDecl *Interface,