diff options
author | dim <dim@FreeBSD.org> | 2014-11-24 18:11:16 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-24 18:11:16 +0000 |
commit | 6148c19c738a92f344008aa3f88f4e008bada0ee (patch) | |
tree | d4426858455f04d0d8c25a2f9eb9ea5582ffe1b6 /contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp | |
parent | 2c8643c6396b0a3db33430cf9380e70bbb9efce0 (diff) | |
parent | 173a4f43a911175643bda81ee675e8d9269056ea (diff) | |
download | FreeBSD-src-6148c19c738a92f344008aa3f88f4e008bada0ee.zip FreeBSD-src-6148c19c738a92f344008aa3f88f4e008bada0ee.tar.gz |
Merge clang 3.5.0 release from ^/vendor/clang/dist, resolve conflicts,
and preserve our customizations, where necessary.
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp b/contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp index a817687..ad046ff 100644 --- a/contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp +++ b/contrib/llvm/tools/clang/lib/Serialization/ASTCommon.cpp @@ -95,21 +95,21 @@ serialization::getDefinitiveDeclContext(const DeclContext *DC) { case Decl::TranslationUnit: case Decl::Namespace: case Decl::LinkageSpec: - return 0; + return nullptr; // C/C++ tag types can only be defined in one place. case Decl::Enum: case Decl::Record: if (const TagDecl *Def = cast<TagDecl>(DC)->getDefinition()) return Def; - return 0; + return nullptr; // FIXME: These can be defined in one place... except special member // functions and out-of-line definitions. case Decl::CXXRecord: case Decl::ClassTemplateSpecialization: case Decl::ClassTemplatePartialSpecialization: - return 0; + return nullptr; // Each function, method, and block declaration is its own DeclContext. case Decl::Function: @@ -131,14 +131,14 @@ serialization::getDefinitiveDeclContext(const DeclContext *DC) { if (const ObjCProtocolDecl *Def = cast<ObjCProtocolDecl>(DC)->getDefinition()) return Def; - return 0; + return nullptr; // FIXME: These are defined in one place, but properties in class extensions // end up being back-patched into the main interface. See // Sema::HandlePropertyInClassExtension for the offending code. case Decl::ObjCInterface: - return 0; - + return nullptr; + default: llvm_unreachable("Unhandled DeclContext in AST reader"); } |