From 651d0bf9dc6165cad9767ef77fdfdb8c169d60a4 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 15 May 2018 21:26:47 +0000 Subject: Move helper classes into anonymous namespaces. NFCI. llvm-svn: 332400 --- clang/lib/Serialization/ASTReaderDecl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp') diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp index 79465b5c88a..a1ce26d27ca 100644 --- a/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/clang/lib/Serialization/ASTReaderDecl.cpp @@ -2552,11 +2552,11 @@ void ASTDeclReader::mergeRedeclarable(Redeclarable *DBase, T *Existing, /// 6.1.2.6/1). Although most merging is done in Sema, we need to guarantee /// that some types are mergeable during deserialization, otherwise name /// lookup fails. This is the case for EnumConstantDecl. -bool allowODRLikeMergeInC(NamedDecl *ND) { +static bool allowODRLikeMergeInC(NamedDecl *ND) { if (!ND) return false; // TODO: implement merge for other necessary decls. - if (dyn_cast(ND)) + if (isa(ND)) return true; return false; } -- cgit v1.2.3