[clang] 23f4edf - [analyzer] Fix build error. NFC.
Valeriy Savchenko via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 29 05:24:26 PDT 2020
Author: Valeriy Savchenko
Date: 2020-04-29T15:24:10+03:00
New Revision: 23f4edf1fe38b8d4c6dbc7fc8e197f1f1f8c6710
URL: https://github.com/llvm/llvm-project/commit/23f4edf1fe38b8d4c6dbc7fc8e197f1f1f8c6710
DIFF: https://github.com/llvm/llvm-project/commit/23f4edf1fe38b8d4c6dbc7fc8e197f1f1f8c6710.diff
LOG: [analyzer] Fix build error. NFC.
Move DenseMapInfo specialization to llvm namespace
Added:
Modified:
clang/lib/StaticAnalyzer/Core/CallEvent.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Core/CallEvent.cpp b/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
index 55d343048345..cd15cd872d9d 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<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,
More information about the cfe-commits
mailing list