diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-05-15 21:26:47 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-05-15 21:26:47 +0000 |
commit | 126ee5d0eecfd774597e95decef55e1532885e1f (patch) | |
tree | 95d2a24e09dd9a76359af375295ca31b256c3fdc /lib/Serialization/ASTReaderDecl.cpp | |
parent | ca22363cfcb42a35a7eacb12df64fc4c35fb5cd3 (diff) | |
download | clang-126ee5d0eecfd774597e95decef55e1532885e1f.tar.gz |
Move helper classes into anonymous namespaces. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTReaderDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index 79465b5c88..a1ce26d27c 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -2552,11 +2552,11 @@ void ASTDeclReader::mergeRedeclarable(Redeclarable<T> *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<EnumConstantDecl>(ND)) + if (isa<EnumConstantDecl>(ND)) return true; return false; } |