From 23f4edf1fe38b8d4c6dbc7fc8e197f1f1f8c6710 Mon Sep 17 00:00:00 2001 From: Valeriy Savchenko Date: Wed, 29 Apr 2020 15:20:57 +0300 Subject: [PATCH] [analyzer] Fix build error. NFC. Move DenseMapInfo specialization to llvm namespace --- clang/lib/StaticAnalyzer/Core/CallEvent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/lib/StaticAnalyzer/Core/CallEvent.cpp b/clang/lib/StaticAnalyzer/Core/CallEvent.cpp index 55d3430..cd15cd8 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, -- 2.7.4