diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-02 11:55:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-02 11:55:44 +0000 |
commit | a45855fc2a84b68436d095c395b3268ca91e38f6 (patch) | |
tree | 1a9d42df60387a08d652810f1ab9476fe240ca26 /clang/lib/AST/DeclBase.cpp | |
parent | 373a83abdc4f6b431eb2501a283c7d6f46459a44 (diff) | |
download | bcm5719-llvm-a45855fc2a84b68436d095c395b3268ca91e38f6.tar.gz bcm5719-llvm-a45855fc2a84b68436d095c395b3268ca91e38f6.zip |
Disable Decl::CheckAccessDeclContext() temporarily.
llvm-svn: 107478
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index 104df7ae84f..1c41e5a659f 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -464,14 +464,16 @@ SourceLocation Decl::getBodyRBrace() const { #ifndef NDEBUG void Decl::CheckAccessDeclContext() const { + // FIXME: Disable this until rdar://8146294 "access specifier for inner class + // templates is not set or checked" is fixed. + return; // Suppress this check if any of the following hold: // 1. this is the translation unit (and thus has no parent) // 2. this is a template parameter (and thus doesn't belong to its context) - // 3. this is a ParmVarDecl (which can be in a record context during - // the brief period between its creation and the creation of the - // FunctionDecl) - // 4. the context is not a record + // 3. the context is not a record + // 4. it's invalid if (isa<TranslationUnitDecl>(this) || + isa<TemplateTypeParmDecl>(this) || !isa<CXXRecordDecl>(getDeclContext()) || isInvalidDecl()) return; |