From: Valeriy Savchenko Date: Wed, 29 Apr 2020 12:20:57 +0000 (+0300) Subject: [analyzer] Fix build error. NFC. X-Git-Tag: llvmorg-12-init~7476 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23f4edf1fe38b8d4c6dbc7fc8e197f1f1f8c6710;p=platform%2Fupstream%2Fllvm.git [analyzer] Fix build error. NFC. Move DenseMapInfo specialization to llvm namespace --- 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,